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

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

Issue 10180011: Support painting panels with chromium themes on GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Returns the exterior size of the panel window given the client content 71 // Returns the exterior size of the panel window given the client content
72 // size and vice versa. 72 // size and vice versa.
73 virtual gfx::Size WindowSizeFromContentSize( 73 virtual gfx::Size WindowSizeFromContentSize(
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 // Returns the size of the iconified panel. This is the size we use to draw
81 // the panel put in the overflow area.
82 virtual gfx::Size IconOnlySize() const = 0;
83
84 // 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
85 // 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.
86 virtual void EnsurePanelFullyVisible() = 0; 82 virtual void EnsurePanelFullyVisible() = 0;
87 83
88 // Sets whether the panel app icon is visible (usually refers to the app icons 84 // Sets whether the panel app icon is visible (usually refers to the app icons
89 // in the desktop bar). 85 // in the desktop bar).
90 virtual void SetPanelAppIconVisibility(bool visible) = 0; 86 virtual void SetPanelAppIconVisibility(bool visible) = 0;
91 87
92 // Sets whether the panel window is always on top. 88 // Sets whether the panel window is always on top.
93 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; 89 virtual void SetPanelAlwaysOnTop(bool on_top) = 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // active, i.e. the titlebar is painted per its active state. 128 // active, i.e. the titlebar is painted per its active state.
133 virtual bool VerifyActiveState(bool is_active) = 0; 129 virtual bool VerifyActiveState(bool is_active) = 0;
134 virtual void WaitForWindowCreationToComplete() const { } 130 virtual void WaitForWindowCreationToComplete() const { }
135 131
136 virtual bool IsWindowSizeKnown() const = 0; 132 virtual bool IsWindowSizeKnown() const = 0;
137 virtual bool IsAnimatingBounds() const = 0; 133 virtual bool IsAnimatingBounds() const = 0;
138 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0; 134 virtual bool IsButtonVisible(TitlebarButtonType button_type) const = 0;
139 }; 135 };
140 136
141 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 137 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698