summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_win.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 15:27:45 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 15:27:45 +0000
commitc39e715f96f482ebf4b2a00405bb3ccb5b8e8826 (patch)
tree7075abb007b554979d25fb7218283f048e1b792e /views/widget/widget_win.h
parent211386d58b7fb341e2a895e5776e8380184d58c4 (diff)
downloadchromium_src-c39e715f96f482ebf4b2a00405bb3ccb5b8e8826.zip
chromium_src-c39e715f96f482ebf4b2a00405bb3ccb5b8e8826.tar.gz
chromium_src-c39e715f96f482ebf4b2a00405bb3ccb5b8e8826.tar.bz2
Revert :
Changed by: jcampan@chromium.org Changed at: Fri 19 Jun 2009 21:22:47 Branch: src Revision: 18889 Comments: Relanding focus manager refactoring with build fix, see:http://codereview.chromium.org/125148BUG=NoneTEST=NoneTBR=ben Review URL: http://codereview.chromium.org/141013 Because it creates hundreds of new reliability crashes. TBR:jcampan Review URL: http://codereview.chromium.org/140064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_win.h')
-rw-r--r--views/widget/widget_win.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/views/widget/widget_win.h b/views/widget/widget_win.h
index 6ae1141..b8500c7 100644
--- a/views/widget/widget_win.h
+++ b/views/widget/widget_win.h
@@ -78,7 +78,11 @@ class WidgetWin : public Widget,
// this view, you are responsible for its destruction. If this value is NULL,
// the caller is responsible for populating the RootView, and sizing its
// contents as the window is sized.
- void Init(HWND parent, const gfx::Rect& bounds);
+ // If |has_own_focus_manager| is true, the focus traversal stay confined to
+ // the window.
+ void Init(HWND parent,
+ const gfx::Rect& bounds,
+ bool has_own_focus_manager);
// Sets the specified view as the contents of this Widget. There can only
// be one contnets view child of this Widget's RootView. This view is sized to
@@ -118,9 +122,6 @@ class WidgetWin : public Widget,
// Returns the RootView associated with the specified HWND (if any).
static RootView* FindRootView(HWND hwnd);
- // Returns the Widget associated with the specified HWND (if any).
- static WidgetWin* GetWidget(HWND hwnd);
-
// All classes registered by WidgetWin start with this name.
static const wchar_t* const kBaseClassName;
@@ -229,7 +230,6 @@ class WidgetWin : public Widget,
virtual ThemeProvider* GetThemeProvider() const;
virtual Window* GetWindow();
virtual const Window* GetWindow() const;
- virtual FocusManager* GetFocusManager();
// Overridden from MessageLoop::Observer:
void WillProcessMessage(const MSG& msg);
@@ -327,6 +327,7 @@ class WidgetWin : public Widget,
}
protected:
+
// Call close instead of this to Destroy the window.
BOOL DestroyWindow() {
DCHECK(::IsWindow(GetNativeView()));
@@ -522,12 +523,6 @@ class WidgetWin : public Widget,
// the TooltipManager.
scoped_ptr<TooltipManagerWin> tooltip_manager_;
- // The focus manager keeping track of focus for this Widget and any of its
- // children. NULL for non top-level widgets.
- // WARNING: RootView's destructor calls into the FocusManager. As such, this
- // must be destroyed AFTER root_view_.
- scoped_ptr<FocusManager> focus_manager_;
-
// The root of the View hierarchy attached to this window.
// WARNING: see warning in tooltip_manager_ for ordering dependencies with
// this and tooltip_manager_.