| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; | 65 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; |
| 66 | 66 |
| 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 gfx::Size DIPToScreenSize(const gfx::Size& dip_size) const = 0; |
| 76 |
| 75 virtual void ResetWindowControls() = 0; | 77 virtual void ResetWindowControls() = 0; |
| 76 | 78 |
| 77 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 79 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
| 78 | 80 |
| 79 // 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 |
| 80 // close, minimize, maximize. | 82 // close, minimize, maximize. |
| 81 // TODO(benwells): Remove this once bubbles don't have two widgets | 83 // TODO(benwells): Remove this once bubbles don't have two widgets |
| 82 // implementing them on non-aura windows. http://crbug.com/189112. | 84 // implementing them on non-aura windows. http://crbug.com/189112. |
| 83 virtual bool ShouldHandleSystemCommands() const = 0; | 85 virtual bool ShouldHandleSystemCommands() const = 0; |
| 84 | 86 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // Called when the window size has finished changing. | 225 // Called when the window size has finished changing. |
| 224 virtual void HandleWindowSizeChanged() = 0; | 226 virtual void HandleWindowSizeChanged() = 0; |
| 225 | 227 |
| 226 protected: | 228 protected: |
| 227 virtual ~HWNDMessageHandlerDelegate() {} | 229 virtual ~HWNDMessageHandlerDelegate() {} |
| 228 }; | 230 }; |
| 229 | 231 |
| 230 } // namespace views | 232 } // namespace views |
| 231 | 233 |
| 232 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 234 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| OLD | NEW |