summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_delegate.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 19:05:03 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 19:05:03 +0000
commit4a6ccfae6fc623853692256afc65b8afd7e33107 (patch)
tree908b8cde4844ef57adb58f020cb134e0f82d2f6d /views/widget/widget_delegate.h
parentc933965b0974d3bd8b090b12766520c0878502a0 (diff)
downloadchromium_src-4a6ccfae6fc623853692256afc65b8afd7e33107.zip
chromium_src-4a6ccfae6fc623853692256afc65b8afd7e33107.tar.gz
chromium_src-4a6ccfae6fc623853692256afc65b8afd7e33107.tar.bz2
Migrate more of BrowserFrame's event handling down into WindowWin/WidgetWin and their delegate interfaces.
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6683007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/widget_delegate.h')
-rw-r--r--views/widget/widget_delegate.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/views/widget/widget_delegate.h b/views/widget/widget_delegate.h
index 71ea6ee..b37c391 100644
--- a/views/widget/widget_delegate.h
+++ b/views/widget/widget_delegate.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,15 +14,20 @@ class WidgetDelegate {
public:
virtual ~WidgetDelegate() {}
- // Called with the display changes (color depth or resolution).
- virtual void DisplayChanged() {}
+ // Called whenever the widget is activated or deactivated.
+ // TODO(beng): This should be consolidated with
+ // WindowDelegate::OnWindowActivationChanged().
+ virtual void OnWidgetActivated(bool active) {}
+
+ // Called whenever the widget's position changes.
+ virtual void OnWidgetMove() {}
- // Called when widget active state has changed.
- virtual void IsActiveChanged(bool active) {}
+ // Called with the display changes (color depth or resolution).
+ virtual void OnDisplayChanged() {}
- // Called when the work area (the desktop area minus taskbars,
- // menubars, etc.) changes in size.
- virtual void WorkAreaChanged() {}
+ // Called when the work area (the desktop area minus task bars,
+ // menu bars, etc.) changes in size.
+ virtual void OnWorkAreaChanged() {}
};
} // namespace views