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 CHROME_BROWSER_UI_BASE_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BASE_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // Sets the window's size and position to the specified values. | 73 // Sets the window's size and position to the specified values. |
74 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 74 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
75 | 75 |
76 // Flashes the taskbar item associated with this window. | 76 // Flashes the taskbar item associated with this window. |
77 // Set |flash| to true to initiate flashing, false to stop flashing. | 77 // Set |flash| to true to initiate flashing, false to stop flashing. |
78 virtual void FlashFrame(bool flash) = 0; | 78 virtual void FlashFrame(bool flash) = 0; |
79 | 79 |
80 // Returns true if a window is set to be always on top. | 80 // Returns true if a window is set to be always on top. |
81 virtual bool IsAlwaysOnTop() const = 0; | 81 virtual bool IsAlwaysOnTop() const = 0; |
| 82 |
| 83 // Converts from window bounds (i.e. including window decorations) to content |
| 84 // bounds (i.e. not including window decorations). |
| 85 virtual gfx::Rect ContentBoundsForWindowBounds( |
| 86 const gfx::Rect& window_bounds) const = 0; |
| 87 |
| 88 // Converts from content bounds (i.e. not including window decorations) to |
| 89 // window bounds (i.e. including window decorations). |
| 90 virtual gfx::Rect WindowBoundsForContentBounds( |
| 91 const gfx::Rect& content_bounds) const = 0; |
82 }; | 92 }; |
83 | 93 |
84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ | 94 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ |
OLD | NEW |