Chromium Code Reviews| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 | 57 |
| 58 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; | 58 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; |
| 59 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* mask) = 0; | 59 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* mask) = 0; |
| 60 | 60 |
| 61 // Returns true if the delegate modifies |insets| to define a custom client | 61 // Returns true if the delegate modifies |insets| to define a custom client |
| 62 // area for the window, false if the default client area should be used. If | 62 // area for the window, false if the default client area should be used. If |
| 63 // false is returned, |insets| is not modified. | 63 // false is returned, |insets| is not modified. |
| 64 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; | 64 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; |
| 65 | 65 |
| 66 // Returns the minimum and maximum size the window can be resized to by the | 66 // Returns the minimum and maximum size the window can be resized to by the |
| 67 // user. | 67 // user. Units are screen pixels. |
|
sky
2014/09/17 15:44:26
The hope is pixels are used vary sparingly. Can th
jackhou1
2014/09/18 03:36:42
Done.
| |
| 68 virtual void GetMinMaxSize(gfx::Size* min_size, | 68 virtual void GetMinMaxSize(gfx::Size* min_size, |
| 69 gfx::Size* max_size) const = 0; | 69 gfx::Size* max_size) const = 0; |
| 70 | 70 |
| 71 // Returns the current size of the RootView. | 71 // Returns the current size of the RootView. |
| 72 virtual gfx::Size GetRootViewSize() const = 0; | 72 virtual gfx::Size GetRootViewSize() const = 0; |
| 73 | 73 |
| 74 virtual void ResetWindowControls() = 0; | 74 virtual void ResetWindowControls() = 0; |
| 75 | 75 |
| 76 virtual void PaintLayeredWindow(gfx::Canvas* canvas) = 0; | 76 virtual void PaintLayeredWindow(gfx::Canvas* canvas) = 0; |
| 77 | 77 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 // Called when the window size is about to change. | 231 // Called when the window size is about to change. |
| 232 virtual void HandleWindowSizeChanging() = 0; | 232 virtual void HandleWindowSizeChanging() = 0; |
| 233 | 233 |
| 234 protected: | 234 protected: |
| 235 virtual ~HWNDMessageHandlerDelegate() {} | 235 virtual ~HWNDMessageHandlerDelegate() {} |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 } // namespace views | 238 } // namespace views |
| 239 | 239 |
| 240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ | 240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ |
| OLD | NEW |