Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: ui/views/win/hwnd_message_handler_delegate.h

Issue 10870110: Move more code from NWW to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler_delegate.h
===================================================================
--- ui/views/win/hwnd_message_handler_delegate.h (revision 153503)
+++ ui/views/win/hwnd_message_handler_delegate.h (working copy)
@@ -37,6 +37,20 @@
virtual bool CanMaximize() const = 0;
virtual bool CanActivate() const = 0;
+ // Returns true if the delegate has a focus saving mechanism that should be
+ // used when the window is activated and deactivated.
+ virtual bool CanSaveFocus() const = 0;
+ virtual void SaveFocusOnDeactivate() = 0;
+ virtual void RestoreFocusOnActivate() = 0;
+ virtual void RestoreFocusOnEnable() = 0;
+
+ // Returns true if the delegate represents a modal window.
+ virtual bool IsModal() const = 0;
+
+ // Returns the show state that should be used for the application's first
+ // window.
+ virtual int GetInitialShowState() const = 0;
+
virtual bool WillProcessWorkAreaChange() const = 0;
virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
@@ -94,9 +108,19 @@
// Called when the HWND is created.
virtual void HandleCreate() = 0;
- // Called when the HWND is destroyed.
- virtual void HandleDestroy() = 0;
+ // Called when the HWND is being destroyed, before any child HWNDs are
+ // destroyed.
+ virtual void HandleDestroying() = 0;
+ // Called after the HWND is destroyed, after all child HWNDs have been
+ // destroyed.
+ virtual void HandleDestroyed() = 0;
+
+ // Called when the HWND is to be focused for the first time. This is called
+ // when the window is shown for the first time. Returns true if the delegate
+ // set focus and no default processing should be done by the message handler.
+ virtual bool HandleInitialFocus() = 0;
+
// Called when display settings are adjusted on the system.
virtual void HandleDisplayChange() = 0;
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698