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 void PaintLayeredWindow(gfx::Canvas* canvas) = 0; | |
78 | |
79 virtual InputMethod* GetInputMethod() = 0; | 77 virtual InputMethod* GetInputMethod() = 0; |
80 | 78 |
81 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 79 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
82 | 80 |
83 // Returns true if the window should handle standard system commands, such as | 81 // Returns true if the window should handle standard system commands, such as |
84 // close, minimize, maximize. | 82 // close, minimize, maximize. |
85 // TODO(benwells): Remove this once bubbles don't have two widgets | 83 // TODO(benwells): Remove this once bubbles don't have two widgets |
86 // implementing them on non-aura windows. http://crbug.com/189112. | 84 // implementing them on non-aura windows. http://crbug.com/189112. |
87 virtual bool ShouldHandleSystemCommands() const = 0; | 85 virtual bool ShouldHandleSystemCommands() const = 0; |
88 | 86 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Called when the window size is about to change. | 226 // Called when the window size is about to change. |
229 virtual void HandleWindowSizeChanging() = 0; | 227 virtual void HandleWindowSizeChanging() = 0; |
230 | 228 |
231 protected: | 229 protected: |
232 virtual ~HWNDMessageHandlerDelegate() {} | 230 virtual ~HWNDMessageHandlerDelegate() {} |
233 }; | 231 }; |
234 | 232 |
235 } // namespace views | 233 } // namespace views |
236 | 234 |
237 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 235 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |