From 3c3ba740c63a178807cc0c1a563080e0adbfe143 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sat, 20 Jun 2009 04:22:44 +0000 Subject: Relanding focus manager refactoring with build fix, see:http://codereview.chromium.org/125148BUG=NoneTEST=NoneTBR=ben Review URL: http://codereview.chromium.org/141013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18889 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/widget.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'views/widget/widget.h') 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 -- cgit v1.1