summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/views/view.h b/views/view.h
index ee979d6..984f50b 100644
--- a/views/view.h
+++ b/views/view.h
@@ -54,12 +54,15 @@ class FocusManager;
class FocusTraversable;
class InputMethod;
class LayoutManager;
-class RootView;
class ScrollView;
class TextInputClient;
class Widget;
class Window;
+namespace internal {
+class RootView;
+}
+
// ContextMenuController is responsible for showing the context menu for a
// View. To use a ContextMenuController invoke SetContextMenuController on a
// View. When the appropriate user gesture occurs ShowContextMenu is invoked
@@ -242,10 +245,6 @@ class View : public AcceleratorTarget {
// hierarchy beneath this view.
virtual bool ContainsNativeView(gfx::NativeView native_view) const;
- // TODO(beng): REMOVE (RootView->internal API)
- // Get the containing RootView
- virtual RootView* GetRootView();
-
// Size and disposition ------------------------------------------------------
// Methods for obtaining and modifying the position and size of the view.
// Position is in the coordinate system of the view's parent.
@@ -997,7 +996,7 @@ class View : public AcceleratorTarget {
// it - like registering accelerators, for example.
virtual void NativeViewHierarchyChanged(bool attached,
gfx::NativeView native_view,
- RootView* root_view);
+ internal::RootView* root_view);
// Painting ------------------------------------------------------------------
@@ -1130,9 +1129,10 @@ class View : public AcceleratorTarget {
static int GetVerticalDragThreshold();
private:
- friend class RootView;
+ friend class internal::RootView;
friend class FocusManager;
friend class ViewStorage;
+ friend class Widget;
// Used to track a drag. RootView passes this into
// ProcessMousePressed/Dragged.
@@ -1179,7 +1179,7 @@ class View : public AcceleratorTarget {
// children.
void PropagateNativeViewHierarchyChanged(bool attached,
gfx::NativeView native_view,
- RootView* root_view);
+ internal::RootView* root_view);
// Takes care of registering/unregistering accelerators if
// |register_accelerators| true and calls ViewHierarchyChanged().