diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-30 20:55:35 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-30 20:55:35 +0000 |
commit | cd8c47902d23091ed28cc9aacb07cbccef7dd673 (patch) | |
tree | 87889b3b57c7f6bad0bc6621f90ff2749b334f5c /chrome/views/view.h | |
parent | 2b4e8a891718f8887740d90860497e64d02a8c17 (diff) | |
download | chromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.zip chromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.tar.gz chromium_src-cd8c47902d23091ed28cc9aacb07cbccef7dd673.tar.bz2 |
Adds a GetWindow method to View.
Review URL: http://codereview.chromium.org/100221
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/view.h')
-rw-r--r-- | chrome/views/view.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/view.h b/chrome/views/view.h index b502842..98f143c 100644 --- a/chrome/views/view.h +++ b/chrome/views/view.h @@ -45,6 +45,7 @@ class RestoreFocusTask; class RootView; class ScrollView; class Widget; +class Window; // ContextMenuController is responsible for showing the context menu for a // View. To use a ContextMenuController invoke SetContextMenuController on a @@ -433,6 +434,9 @@ class View : public AcceleratorTarget { // Get the Widget that hosts this View, if any. virtual Widget* GetWidget() const; + // Gets the Widget that most closely contains this View, if any. + virtual Window* GetWindow() const; + // Get the containing RootView virtual RootView* GetRootView(); |