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

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

Issue 10827454: Move more methods 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 152769)
+++ ui/views/win/hwnd_message_handler_delegate.h (working copy)
@@ -97,12 +97,27 @@
// Called when the system's work area has changed.
virtual void HandleWorkAreaChanged() = 0;
+ // Called when the window's visibility changed. |visible| holds the new state.
+ virtual void HandleVisibilityChanged(bool visible) = 0;
+
+ // Called when the window's client size changed. |new_size| holds the new
+ // size.
+ virtual void HandleClientSizeChanged(const gfx::Size& new_size) = 0;
+
// Called when focus shifted to this HWND from |last_focused_window|.
virtual void HandleNativeFocus(HWND last_focused_window) = 0;
// Called when focus shifted from the HWND to a different window.
virtual void HandleNativeBlur(HWND focused_window) = 0;
+ // Called when a mouse event is received. Returns true if the event was
+ // handled by the delegate.
+ virtual bool HandleMouseEvent(const ui::MouseEvent& event) = 0;
+
+ // Called when a key event is received. Returns true if the event was handled
+ // by the delegate.
+ virtual bool HandleKeyEvent(const ui::KeyEvent& event) = 0;
+
// Called when we have detected a screen reader.
virtual void HandleScreenReaderDetected() = 0;
@@ -111,6 +126,11 @@
NMHDR* l_param,
LRESULT* l_result) = 0;
+ // Called to forward mouse events to the tooltip manager.
+ virtual void HandleTooltipMouseMove(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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698