Index: ui/views/widget/hwnd_message_handler_delegate.h |
=================================================================== |
--- ui/views/widget/hwnd_message_handler_delegate.h (revision 152389) |
+++ 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; |