diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 21:10:54 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-13 21:10:54 +0000 |
commit | 38c39b06af1141f104b2c35a6975c7861d19ebbe (patch) | |
tree | 13421eae93050987720979267020eb8a0702cebb /views/widget/native_widget_views.cc | |
parent | ec389b968684720aac295eaab274115878ab8112 (diff) | |
download | chromium_src-38c39b06af1141f104b2c35a6975c7861d19ebbe.zip chromium_src-38c39b06af1141f104b2c35a6975c7861d19ebbe.tar.gz chromium_src-38c39b06af1141f104b2c35a6975c7861d19ebbe.tar.bz2 |
Add Widget::Observer for observing Widgets.
Use this new observation technique to avoid a crash in views-desktop when the
active widget is closed.
BUG=none
TEST=Run views_desktop, close a window, click, it doesn't crash!
Review URL: http://codereview.chromium.org/7342015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_views.cc')
-rw-r--r-- | views/widget/native_widget_views.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc index 2f1476d..0a03e77 100644 --- a/views/widget/native_widget_views.cc +++ b/views/widget/native_widget_views.cc @@ -307,6 +307,7 @@ bool NativeWidgetViews::IsVisible() const { } void NativeWidgetViews::Activate() { + // Enable WidgetObserverTest.ActivationChange when this is implemented. NOTIMPLEMENTED(); } @@ -358,7 +359,7 @@ void NativeWidgetViews::Minimize() { } bool NativeWidgetViews::IsMaximized() const { - NOTIMPLEMENTED(); + // NOTIMPLEMENTED(); return false; } |