OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
7 | 7 |
8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 class Canvas; | |
12 class Insets; | 11 class Insets; |
13 class Path; | 12 class Path; |
14 class Point; | 13 class Point; |
15 class Size; | 14 class Size; |
16 } | 15 } |
17 | 16 |
18 namespace ui { | 17 namespace ui { |
19 class Accelerator; | 18 class Accelerator; |
20 class KeyEvent; | 19 class KeyEvent; |
21 class MouseEvent; | 20 class MouseEvent; |
22 class TouchEvent; | 21 class TouchEvent; |
23 } | 22 } |
24 | 23 |
25 namespace views { | 24 namespace views { |
26 | 25 |
27 enum class FrameMode { | 26 enum class FrameMode { |
28 SYSTEM_DRAWN, // "glass" frame | 27 SYSTEM_DRAWN, // "glass" frame |
29 SYSTEM_DRAWN_NO_CONTROLS, // "glass" frame but with custom window controls | 28 SYSTEM_DRAWN_NO_CONTROLS, // "glass" frame but with custom window controls |
30 CUSTOM_DRAWN // "opaque" frame | 29 CUSTOM_DRAWN // "opaque" frame |
31 }; | 30 }; |
32 | 31 |
33 class InputMethod; | |
34 | |
35 // Implemented by the object that uses the HWNDMessageHandler to handle | 32 // Implemented by the object that uses the HWNDMessageHandler to handle |
36 // notifications from the underlying HWND and service requests for data. | 33 // notifications from the underlying HWND and service requests for data. |
37 class VIEWS_EXPORT HWNDMessageHandlerDelegate { | 34 class VIEWS_EXPORT HWNDMessageHandlerDelegate { |
38 public: | 35 public: |
39 // True if the widget associated with this window has a non-client view. | 36 // True if the widget associated with this window has a non-client view. |
40 virtual bool HasNonClientView() const = 0; | 37 virtual bool HasNonClientView() const = 0; |
41 | 38 |
42 // Returns who we want to be drawing the frame. Either the system (Windows) | 39 // Returns who we want to be drawing the frame. Either the system (Windows) |
43 // will handle it or Chrome will custom draw it. | 40 // will handle it or Chrome will custom draw it. |
44 virtual FrameMode GetFrameMode() const = 0; | 41 virtual FrameMode GetFrameMode() const = 0; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Called when the window scale factor has changed. | 245 // Called when the window scale factor has changed. |
249 virtual void HandleWindowScaleFactorChanged(float window_scale_factor) = 0; | 246 virtual void HandleWindowScaleFactorChanged(float window_scale_factor) = 0; |
250 | 247 |
251 protected: | 248 protected: |
252 virtual ~HWNDMessageHandlerDelegate() {} | 249 virtual ~HWNDMessageHandlerDelegate() {} |
253 }; | 250 }; |
254 | 251 |
255 } // namespace views | 252 } // namespace views |
256 | 253 |
257 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 254 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |