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_PANELS_NATIVE_PANEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
7 | 7 |
8 #include "chrome/browser/ui/panels/panel.h" | 8 #include "chrome/browser/ui/panels/panel.h" |
9 #include "chrome/browser/ui/panels/panel_constants.h" | 9 #include "chrome/browser/ui/panels/panel_constants.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const gfx::Size& content_size) const = 0; | 65 const gfx::Size& content_size) const = 0; |
66 virtual gfx::Size ContentSizeFromWindowSize( | 66 virtual gfx::Size ContentSizeFromWindowSize( |
67 const gfx::Size& window_size) const = 0; | 67 const gfx::Size& window_size) const = 0; |
68 | 68 |
69 virtual int TitleOnlyHeight() const = 0; | 69 virtual int TitleOnlyHeight() const = 0; |
70 | 70 |
71 // Gets or sets whether the panel window is always on top. | 71 // Gets or sets whether the panel window is always on top. |
72 virtual bool IsPanelAlwaysOnTop() const = 0; | 72 virtual bool IsPanelAlwaysOnTop() const = 0; |
73 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; | 73 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; |
74 | 74 |
75 // Enables resizing by dragging edges/corners. | |
76 virtual void EnableResizeByMouse(bool enable) = 0; | |
77 | |
78 // Updates the visibility of the minimize and restore buttons. | 75 // Updates the visibility of the minimize and restore buttons. |
79 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0; | 76 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0; |
80 | 77 |
81 // Sets how the panel window displays its 4 corners, rounded or not. | 78 // Sets how the panel window displays its 4 corners, rounded or not. |
82 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0; | 79 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0; |
83 | 80 |
84 // Performs the system minimize for the panel, i.e. becoming iconic. | 81 // Performs the system minimize for the panel, i.e. becoming iconic. |
85 virtual void MinimizePanelBySystem() = 0; | 82 virtual void MinimizePanelBySystem() = 0; |
86 | 83 |
87 // Returns true if the panel has been minimized by the system, i.e. becoming | 84 // Returns true if the panel has been minimized by the system, i.e. becoming |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; | 137 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; |
141 | 138 |
142 virtual panel::CornerStyle GetWindowCornerStyle() const = 0; | 139 virtual panel::CornerStyle GetWindowCornerStyle() const = 0; |
143 | 140 |
144 // Makes sure that the application is running on foreground. Returns false | 141 // Makes sure that the application is running on foreground. Returns false |
145 // if the effort fails. | 142 // if the effort fails. |
146 virtual bool EnsureApplicationRunOnForeground() = 0; | 143 virtual bool EnsureApplicationRunOnForeground() = 0; |
147 }; | 144 }; |
148 | 145 |
149 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 146 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |