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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void Deactivate() = 0; | 63 virtual void Deactivate() = 0; |
64 | 64 |
65 // Maximizes/minimizes/restores the window. | 65 // Maximizes/minimizes/restores the window. |
66 virtual void Maximize() = 0; | 66 virtual void Maximize() = 0; |
67 virtual void Minimize() = 0; | 67 virtual void Minimize() = 0; |
68 virtual void Restore() = 0; | 68 virtual void Restore() = 0; |
69 | 69 |
70 // Sets the window's size and position to the specified values. | 70 // Sets the window's size and position to the specified values. |
71 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 71 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
72 | 72 |
73 // The specified region will act like the window's caption area, meaning that | |
74 // the user will be able to move the window by dragging in that area. (On | |
75 // Windows, they will also be able to maximize the window by double-clicking | |
76 // it, and show the system menu by right-clicking it.) | |
77 // Currently only implemented by ShellWindow. | |
78 virtual void SetDraggableRegion(SkRegion* region) = 0; | |
79 | |
80 // Flashes the taskbar item associated with this window. | 73 // Flashes the taskbar item associated with this window. |
81 // Set |flash| to true to initiate flashing, false to stop flashing. | 74 // Set |flash| to true to initiate flashing, false to stop flashing. |
82 virtual void FlashFrame(bool flash) = 0; | 75 virtual void FlashFrame(bool flash) = 0; |
83 | 76 |
84 // Returns true if a window is set to be always on top. | 77 // Returns true if a window is set to be always on top. |
85 virtual bool IsAlwaysOnTop() const = 0; | 78 virtual bool IsAlwaysOnTop() const = 0; |
86 }; | 79 }; |
87 | 80 |
88 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ | 81 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ |
OLD | NEW |