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

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

Issue 10831394: Move more message handlers from NativeWidgetWin 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/widget/hwnd_message_handler.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/hwnd_message_handler_delegate.h
===================================================================
--- ui/views/widget/hwnd_message_handler_delegate.h (revision 152370)
+++ ui/views/widget/hwnd_message_handler_delegate.h (working copy)
@@ -7,6 +7,12 @@
#include "ui/views/views_export.h"
+namespace gfx {
+class Path;
+class Point;
+class Size;
+}
+
namespace views {
class InputMethod;
@@ -22,6 +28,13 @@
// to avoid confusion.
virtual bool IsUsingCustomFrame() const = 0;
+ virtual bool CanResize() const = 0;
+ virtual bool CanMaximize() const = 0;
+ virtual bool CanActivate() const = 0;
+
+ virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
+ virtual void GetWindowMask(const gfx::Size& size, gfx::Path* mask) = 0;
+
virtual InputMethod* GetInputMethod() = 0;
// TODO(beng): Investigate migrating these methods to On* prefixes once
@@ -61,6 +74,12 @@
// Called when the window's position changed.
virtual void HandleMove() = 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;
+
// 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/widget/hwnd_message_handler.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698