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 { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // implementing them on non-aura windows. http://crbug.com/189112. | 87 // implementing them on non-aura windows. http://crbug.com/189112. |
88 virtual bool ShouldHandleSystemCommands() const = 0; | 88 virtual bool ShouldHandleSystemCommands() const = 0; |
89 | 89 |
90 // TODO(beng): Investigate migrating these methods to On* prefixes once | 90 // TODO(beng): Investigate migrating these methods to On* prefixes once |
91 // HWNDMessageHandler is the WindowImpl. | 91 // HWNDMessageHandler is the WindowImpl. |
92 | 92 |
93 // Called when another app was activated. | 93 // Called when another app was activated. |
94 virtual void HandleAppDeactivated() = 0; | 94 virtual void HandleAppDeactivated() = 0; |
95 | 95 |
96 // Called when the window was activated or deactivated. |active| reflects the | 96 // Called when the window was activated or deactivated. |active| reflects the |
97 // new state. | 97 // new state. |window_gaining_or_losing_activation| is the window gaining or |
98 virtual void HandleActivationChanged(bool active) = 0; | 98 // losing activation. |
| 99 virtual void HandleActivationChanged( |
| 100 bool active, |
| 101 HWND window_gaining_or_losing_activation) = 0; |
99 | 102 |
100 // Called when a well known "app command" from the system was performed. | 103 // Called when a well known "app command" from the system was performed. |
101 // Returns true if the command was handled. | 104 // Returns true if the command was handled. |
102 virtual bool HandleAppCommand(short command) = 0; | 105 virtual bool HandleAppCommand(short command) = 0; |
103 | 106 |
104 // Called from WM_CANCELMODE. | 107 // Called from WM_CANCELMODE. |
105 virtual void HandleCancelMode() = 0; | 108 virtual void HandleCancelMode() = 0; |
106 | 109 |
107 // Called when the window has lost mouse capture. | 110 // Called when the window has lost mouse capture. |
108 virtual void HandleCaptureLost() = 0; | 111 virtual void HandleCaptureLost() = 0; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Called when the window size has finished changing. | 231 // Called when the window size has finished changing. |
229 virtual void HandleWindowSizeChanged() = 0; | 232 virtual void HandleWindowSizeChanged() = 0; |
230 | 233 |
231 protected: | 234 protected: |
232 virtual ~HWNDMessageHandlerDelegate() {} | 235 virtual ~HWNDMessageHandlerDelegate() {} |
233 }; | 236 }; |
234 | 237 |
235 } // namespace views | 238 } // namespace views |
236 | 239 |
237 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |