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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; | 70 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; |
71 | 71 |
72 // Returns the minimum and maximum size the window can be resized to by the | 72 // Returns the minimum and maximum size the window can be resized to by the |
73 // user. | 73 // user. |
74 virtual void GetMinMaxSize(gfx::Size* min_size, | 74 virtual void GetMinMaxSize(gfx::Size* min_size, |
75 gfx::Size* max_size) const = 0; | 75 gfx::Size* max_size) const = 0; |
76 | 76 |
77 // Returns the current size of the RootView. | 77 // Returns the current size of the RootView. |
78 virtual gfx::Size GetRootViewSize() const = 0; | 78 virtual gfx::Size GetRootViewSize() const = 0; |
79 | 79 |
| 80 virtual gfx::Size DIPToScreenSize(const gfx::Size& dip_size) const = 0; |
| 81 |
80 virtual void ResetWindowControls() = 0; | 82 virtual void ResetWindowControls() = 0; |
81 | 83 |
82 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 84 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
83 | 85 |
84 // Returns true if the window should handle standard system commands, such as | 86 // Returns true if the window should handle standard system commands, such as |
85 // close, minimize, maximize. | 87 // close, minimize, maximize. |
86 // TODO(benwells): Remove this once bubbles don't have two widgets | 88 // TODO(benwells): Remove this once bubbles don't have two widgets |
87 // implementing them on non-aura windows. http://crbug.com/189112. | 89 // implementing them on non-aura windows. http://crbug.com/189112. |
88 virtual bool ShouldHandleSystemCommands() const = 0; | 90 virtual bool ShouldHandleSystemCommands() const = 0; |
89 | 91 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Called when the window size has finished changing. | 230 // Called when the window size has finished changing. |
229 virtual void HandleWindowSizeChanged() = 0; | 231 virtual void HandleWindowSizeChanged() = 0; |
230 | 232 |
231 protected: | 233 protected: |
232 virtual ~HWNDMessageHandlerDelegate() {} | 234 virtual ~HWNDMessageHandlerDelegate() {} |
233 }; | 235 }; |
234 | 236 |
235 } // namespace views | 237 } // namespace views |
236 | 238 |
237 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 239 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
OLD | NEW |