diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 22:57:54 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-19 22:57:54 +0000 |
commit | a109d02492863aeb537dea09bfb445eb6f5d94c5 (patch) | |
tree | bd3d2e9a783179eb2582f0055192b97e8d248547 /views/widget/widget.h | |
parent | 3c30f4c1e5f2bdb4f5d198c4a9ea18cc8045ddea (diff) | |
download | chromium_src-a109d02492863aeb537dea09bfb445eb6f5d94c5.zip chromium_src-a109d02492863aeb537dea09bfb445eb6f5d94c5.tar.gz chromium_src-a109d02492863aeb537dea09bfb445eb6f5d94c5.tar.bz2 |
Removed the last Windows specific part out of the focus manager. HWNDs are not subclassed anymore.The FocusManager is now created and owned by top-level WidgetWins.BUG=NoneTEST=Run the unit tests, UI tests, interactive UI tests. Fully test the focus behavior in the browser: activate/deactivate the browser windows, make sure focus is remembered. Switch tabs, make sure focus is remembered for each tab. make sure accelerators work as expected. Test focus traversal in a web page, in the option dialog.
Review URL: http://codereview.chromium.org/125148
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget.h')
-rw-r--r-- | views/widget/widget.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/views/widget/widget.h b/views/widget/widget.h index 1dabf08..9c4c5ef 100644 --- a/views/widget/widget.h +++ b/views/widget/widget.h @@ -17,6 +17,7 @@ class Rect; namespace views { class Accelerator; +class FocusManager; class RootView; class TooltipManager; class Window; @@ -105,13 +106,17 @@ class Widget { virtual Window* GetWindow() { return NULL; } virtual const Window* GetWindow() const { return NULL; } - // Get the theme provider. + // Gets the theme provider. virtual ThemeProvider* GetThemeProvider() const { return NULL; } - // Get the default theme provider; this is necessary for when a widget has + // Gets the default theme provider; this is necessary for when a widget has // no profile (and ThemeProvider) associated with it. The default theme // provider provides a default set of bitmaps that such widgets can use. virtual ThemeProvider* GetDefaultThemeProvider() { return NULL; } + + // Returns the FocusManager for this widget. + // Note that all widgets in a widget hierarchy share the same focus manager. + virtual FocusManager* GetFocusManager() { return NULL; } }; } // namespace views |