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

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

Issue 10892014: Make HWNDMessageHandler subclass WindowImpl. (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') | ui/views/window/native_frame_view.cc » ('j') | 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 153679)
+++ ui/views/win/hwnd_message_handler_delegate.h (working copy)
@@ -37,6 +37,8 @@
virtual bool CanMaximize() const = 0;
virtual bool CanActivate() const = 0;
+ virtual bool WidgetSizeIsClientSize() 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;
@@ -179,6 +181,23 @@
WPARAM w_param,
LPARAM l_param) = 0;
+ // Catch-all message handling and filtering. Called before
+ // HWNDMessageHandler's built-in handling, which may pre-empt some
+ // expectations in Views/Aura if messages are consumed. Returns true if the
+ // message was consumed by the delegate and should not be processed further
+ // by the HWNDMessageHandler. In this case, |result| is returned. |result| is
+ // not modified otherwise.
+ virtual bool PreHandleMSG(UINT message,
+ WPARAM w_param,
+ LPARAM l_param,
+ LRESULT* result) = 0;
+
+ // Like PreHandleMSG, but called after HWNDMessageHandler's built-in handling
+ // has run and after DefWindowProc.
+ virtual void PostHandleMSG(UINT message,
+ WPARAM w_param,
+ LPARAM l_param) = 0;
+
// This is provided for methods that need to call private methods on NWW.
// TODO(beng): should be removed once HWNDMessageHandler is the WindowImpl.
virtual NativeWidgetWin* AsNativeWidgetWin() = 0;
« no previous file with comments | « ui/views/win/hwnd_message_handler.cc ('k') | ui/views/window/native_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698