diff options
author | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-07 00:55:16 +0000 |
---|---|---|
committer | georgey@chromium.org <georgey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-07 00:55:16 +0000 |
commit | bda9556c63579835dd14055a048f4e2094e7b3f5 (patch) | |
tree | f215d883f2ded85f48bc14d27edd4048f12c364b /views/widget/widget.h | |
parent | c83c9e683a9376cea1ef675bfe92f7dbb98d45f5 (diff) | |
download | chromium_src-bda9556c63579835dd14055a048f4e2094e7b3f5.zip chromium_src-bda9556c63579835dd14055a048f4e2094e7b3f5.tar.gz chromium_src-bda9556c63579835dd14055a048f4e2094e7b3f5.tar.bz2 |
Addded notification when ancestor gets changed. So windows that lack focus manager, because of being
created on inactive tab, could do the necessary work when focus manager is actually attached.
This is relevant for Windows only, but some support functions (FindAllRootViews) could be useful for
other architectures as well.
BUG=22481
TEST=in the bug
Review URL: http://codereview.chromium.org/492025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r-- | views/widget/widget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h index 8de4b6c..fa8111e 100644 --- a/views/widget/widget.h +++ b/views/widget/widget.h @@ -5,6 +5,7 @@ #ifndef VIEWS_WIDGET_WIDGET_H_ #define VIEWS_WIDGET_WIDGET_H_ +#include <vector> #include "app/gfx/native_widget_types.h" class ThemeProvider; @@ -71,6 +72,11 @@ class Widget { // one is found. If a root view isn't found, null is returned. static RootView* FindRootView(gfx::NativeWindow native_window); + // Returns list of all root views for the native window and its + // children. + static void FindAllRootViews(gfx::NativeWindow native_window, + std::vector<RootView*>* root_views); + // Retrieve the Widget corresponding to the specified native_view, or NULL // if there is no such Widget. static Widget* GetWidgetFromNativeView(gfx::NativeView native_view); |