Fix crash in ResourceLoader if the resources were retrieved before BlockUntilLoaded...
[chromium-blink-merge.git] / components / view_manager / view_locator.h
blob13a1f0c597f8c1a46c428780142c8f07c3196962
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_VIEW_MANAGER_VIEW_LOCATOR_H_
6 #define COMPONENTS_VIEW_MANAGER_VIEW_LOCATOR_H_
8 namespace gfx {
9 class Point;
12 namespace view_manager {
14 class ServerView;
16 // Finds the deepest visible view that contains the specified location.
17 const ServerView* FindDeepestVisibleView(const ServerView* view,
18 const gfx::Point& location);
19 ServerView* FindDeepestVisibleView(ServerView* view,
20 const gfx::Point& location);
22 } // namespace view_manager
24 #endif // COMPONENTS_VIEW_MANAGER_VIEW_LOCATOR_H_