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 |
11 namespace gfx { | 11 namespace gfx { |
12 class Rect; | 12 class Rect; |
13 } | 13 } |
14 | 14 |
15 class SkRegion; | 15 class SkRegion; |
16 | 16 |
17 // This API needs to be implemented by any window that might be accessed | 17 // This API needs to be implemented by any window that might be accessed |
18 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). | 18 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). |
19 | 19 |
20 class BaseWindow { | 20 class BaseWindow { |
21 public: | 21 public: |
| 22 virtual ~BaseWindow() { } |
| 23 |
22 // Returns true if the window is currently the active/focused window. | 24 // Returns true if the window is currently the active/focused window. |
23 virtual bool IsActive() const = 0; | 25 virtual bool IsActive() const = 0; |
24 | 26 |
25 // Returns true if the window is maximized (aka zoomed). | 27 // Returns true if the window is maximized (aka zoomed). |
26 virtual bool IsMaximized() const = 0; | 28 virtual bool IsMaximized() const = 0; |
27 | 29 |
28 // Returns true if the window is minimized. | 30 // Returns true if the window is minimized. |
29 virtual bool IsMinimized() const = 0; | 31 virtual bool IsMinimized() const = 0; |
30 | 32 |
31 // Returns true if the window is full screen. | 33 // Returns true if the window is full screen. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 77 |
76 // Flashes the taskbar item associated with this window. | 78 // Flashes the taskbar item associated with this window. |
77 // Set |flash| to true to initiate flashing, false to stop flashing. | 79 // Set |flash| to true to initiate flashing, false to stop flashing. |
78 virtual void FlashFrame(bool flash) = 0; | 80 virtual void FlashFrame(bool flash) = 0; |
79 | 81 |
80 // Returns true if a window is set to be always on top. | 82 // Returns true if a window is set to be always on top. |
81 virtual bool IsAlwaysOnTop() const = 0; | 83 virtual bool IsAlwaysOnTop() const = 0; |
82 }; | 84 }; |
83 | 85 |
84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ | 86 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ |
OLD | NEW |