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

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

Issue 10260028: Update Panel mininimize/restore button on strip and expansion state change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback changes Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const gfx::Size& content_size) const = 0; 74 const gfx::Size& content_size) const = 0;
75 virtual gfx::Size ContentSizeFromWindowSize( 75 virtual gfx::Size ContentSizeFromWindowSize(
76 const gfx::Size& window_size) const = 0; 76 const gfx::Size& window_size) const = 0;
77 77
78 virtual int TitleOnlyHeight() const = 0; 78 virtual int TitleOnlyHeight() const = 0;
79 79
80 // Brings the panel to the top of the z-order without activating it. This 80 // Brings the panel to the top of the z-order without activating it. This
81 // will make sure that the panel is not obscured by other top-most windows. 81 // will make sure that the panel is not obscured by other top-most windows.
82 virtual void EnsurePanelFullyVisible() = 0; 82 virtual void EnsurePanelFullyVisible() = 0;
83 83
84 // Sets whether the panel app icon is visible (usually refers to the app icons
85 // in the desktop bar).
86 virtual void SetPanelAppIconVisibility(bool visible) = 0;
87
88 // Sets whether the panel window is always on top. 84 // Sets whether the panel window is always on top.
89 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; 85 virtual void SetPanelAlwaysOnTop(bool on_top) = 0;
90 86
91 // Enables resizing by dragging edges/corners. 87 // Enables resizing by dragging edges/corners.
92 virtual void EnableResizeByMouse(bool enable) = 0; 88 virtual void EnableResizeByMouse(bool enable) = 0;
89
90 // Updates the visibility of the minimize and restore buttons.
91 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0;
93 }; 92 };
94 93
95 // A NativePanel utility interface used for accessing elements of the 94 // A NativePanel utility interface used for accessing elements of the
96 // native panel used only by test automation. 95 // native panel used only by test automation.
97 class NativePanelTesting { 96 class NativePanelTesting {
98 public: 97 public:
99 enum TitlebarButtonType { 98 enum TitlebarButtonType {
100 CLOSE_BUTTON, 99 CLOSE_BUTTON,
101 MINIMIZE_BUTTON, 100 MINIMIZE_BUTTON,
102 RESTORE_BUTTON 101 RESTORE_BUTTON
(...skipping 25 matching lines...) Expand all
128 // active, i.e. the titlebar is painted per its active state. 127 // active, i.e. the titlebar is painted per its active state.
129 virtual bool VerifyActiveState(bool is_active) = 0; 128 virtual bool VerifyActiveState(bool is_active) = 0;
130 virtual void WaitForWindowCreationToComplete() const { } 129 virtual void WaitForWindowCreationToComplete() const { }
131 130
132 virtual bool IsWindowSizeKnown() const = 0; 131 virtual bool IsWindowSizeKnown() const = 0;
133 virtual bool IsAnimatingBounds() const = 0; 132 virtual bool IsAnimatingBounds() const = 0;
134 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; 133 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0;
135 }; 134 };
136 135
137 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 136 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698