Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: trunk/src/chrome/browser/ui/panels/native_panel.h

Issue 23922003: Revert 221651 "Switch to doing user-resizing via system for pane..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
75 // Updates the visibility of the minimize and restore buttons. 78 // Updates the visibility of the minimize and restore buttons.
76 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0; 79 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0;
77 80
78 // Sets how the panel window displays its 4 corners, rounded or not. 81 // Sets how the panel window displays its 4 corners, rounded or not.
79 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0; 82 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0;
80 83
81 // Performs the system minimize for the panel, i.e. becoming iconic. 84 // Performs the system minimize for the panel, i.e. becoming iconic.
82 virtual void MinimizePanelBySystem() = 0; 85 virtual void MinimizePanelBySystem() = 0;
83 86
84 // Returns true if the panel has been minimized by the system, i.e. becoming 87 // 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
137 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; 140 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0;
138 141
139 virtual panel::CornerStyle GetWindowCornerStyle() const = 0; 142 virtual panel::CornerStyle GetWindowCornerStyle() const = 0;
140 143
141 // Makes sure that the application is running on foreground. Returns false 144 // Makes sure that the application is running on foreground. Returns false
142 // if the effort fails. 145 // if the effort fails.
143 virtual bool EnsureApplicationRunOnForeground() = 0; 146 virtual bool EnsureApplicationRunOnForeground() = 0;
144 }; 147 };
145 148
146 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 149 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/ui/panels/docked_panel_collection.cc ('k') | trunk/src/chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698