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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
index 76188e2d7c97101abb4356c8b54345298a969bf6..88d7183b7cc00f237292dc283b437d174c3e8dba 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
@@ -274,8 +274,6 @@ const gfx::Image* PanelBrowserWindowGtk::GetThemeFrameImage() const {
void PanelBrowserWindowGtk::DrawCustomFrame(cairo_t* cr,
GtkWidget* widget,
GdkEventExpose* event) {
- GetPanelTitlebar()->UpdateMinimizeRestoreButtonVisibility();
-
gfx::CairoCachedSurface* surface = GetThemeFrameImage()->ToCairo();
surface->SetSource(cr, widget, 0, 0);
@@ -471,10 +469,6 @@ void PanelBrowserWindowGtk::EnsurePanelFullyVisible() {
gtk_window_present(window());
}
-void PanelBrowserWindowGtk::SetPanelAppIconVisibility(bool visible) {
- return;
-}
-
void PanelBrowserWindowGtk::SetPanelAlwaysOnTop(bool on_top) {
gtk_window_set_keep_above(window(), on_top);
}
@@ -482,6 +476,10 @@ void PanelBrowserWindowGtk::SetPanelAlwaysOnTop(bool on_top) {
void PanelBrowserWindowGtk::EnableResizeByMouse(bool enable) {
}
+void PanelBrowserWindowGtk::UpdatePanelMinimizeRestoreButtonVisibility() {
+ GetPanelTitlebar()->UpdateMinimizeRestoreButtonVisibility();
+}
+
gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize(
const gfx::Size& content_size) const {
return gfx::Size(content_size.width() + frame_size_.width(),
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698