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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Returns the minimum and maximum size the window can be resized to by the | 67 // Returns the minimum and maximum size the window can be resized to by the |
68 // user. | 68 // user. |
69 virtual void GetMinMaxSize(gfx::Size* min_size, | 69 virtual void GetMinMaxSize(gfx::Size* min_size, |
70 gfx::Size* max_size) const = 0; | 70 gfx::Size* max_size) const = 0; |
71 | 71 |
72 // Returns the current size of the RootView. | 72 // Returns the current size of the RootView. |
73 virtual gfx::Size GetRootViewSize() const = 0; | 73 virtual gfx::Size GetRootViewSize() const = 0; |
74 | 74 |
75 virtual void ResetWindowControls() = 0; | 75 virtual void ResetWindowControls() = 0; |
76 | 76 |
77 virtual InputMethod* GetInputMethod() = 0; | |
78 | |
79 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 77 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
80 | 78 |
81 // Returns true if the window should handle standard system commands, such as | 79 // Returns true if the window should handle standard system commands, such as |
82 // close, minimize, maximize. | 80 // close, minimize, maximize. |
83 // TODO(benwells): Remove this once bubbles don't have two widgets | 81 // TODO(benwells): Remove this once bubbles don't have two widgets |
84 // implementing them on non-aura windows. http://crbug.com/189112. | 82 // implementing them on non-aura windows. http://crbug.com/189112. |
85 virtual bool ShouldHandleSystemCommands() const = 0; | 83 virtual bool ShouldHandleSystemCommands() const = 0; |
86 | 84 |
87 // TODO(beng): Investigate migrating these methods to On* prefixes once | 85 // TODO(beng): Investigate migrating these methods to On* prefixes once |
88 // HWNDMessageHandler is the WindowImpl. | 86 // HWNDMessageHandler is the WindowImpl. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // Called when the window size is about to change. | 224 // Called when the window size is about to change. |
227 virtual void HandleWindowSizeChanging() = 0; | 225 virtual void HandleWindowSizeChanging() = 0; |
228 | 226 |
229 protected: | 227 protected: |
230 virtual ~HWNDMessageHandlerDelegate() {} | 228 virtual ~HWNDMessageHandlerDelegate() {} |
231 }; | 229 }; |
232 | 230 |
233 } // namespace views | 231 } // namespace views |
234 | 232 |
235 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 233 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |