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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.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
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_PANEL_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const NativeWebKeyboardEvent& event) OVERRIDE; 104 const NativeWebKeyboardEvent& event) OVERRIDE;
105 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 105 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
106 virtual Browser* GetPanelBrowser() const OVERRIDE; 106 virtual Browser* GetPanelBrowser() const OVERRIDE;
107 virtual void DestroyPanelBrowser() OVERRIDE; 107 virtual void DestroyPanelBrowser() OVERRIDE;
108 virtual gfx::Size WindowSizeFromContentSize( 108 virtual gfx::Size WindowSizeFromContentSize(
109 const gfx::Size& content_size) const OVERRIDE; 109 const gfx::Size& content_size) const OVERRIDE;
110 virtual gfx::Size ContentSizeFromWindowSize( 110 virtual gfx::Size ContentSizeFromWindowSize(
111 const gfx::Size& window_size) const OVERRIDE; 111 const gfx::Size& window_size) const OVERRIDE;
112 virtual int TitleOnlyHeight() const OVERRIDE; 112 virtual int TitleOnlyHeight() const OVERRIDE;
113 virtual void EnsurePanelFullyVisible() OVERRIDE; 113 virtual void EnsurePanelFullyVisible() OVERRIDE;
114 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE;
115 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; 114 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE;
116 virtual void EnableResizeByMouse(bool enable) OVERRIDE; 115 virtual void EnableResizeByMouse(bool enable) OVERRIDE;
116 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE;
117 117
118 private: 118 private:
119 friend class NativePanelTestingGtk; 119 friend class NativePanelTestingGtk;
120 120
121 void StartBoundsAnimation(const gfx::Rect& from_bounds, 121 void StartBoundsAnimation(const gfx::Rect& from_bounds,
122 const gfx::Rect& to_bounds); 122 const gfx::Rect& to_bounds);
123 bool IsAnimatingBounds() const; 123 bool IsAnimatingBounds() const;
124 124
125 // Overridden from AnimationDelegate: 125 // Overridden from AnimationDelegate:
126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 126 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // current one completes. In this case, we want to start the new animation 159 // current one completes. In this case, we want to start the new animation
160 // from where the last one left. 160 // from where the last one left.
161 gfx::Rect last_animation_progressed_bounds_; 161 gfx::Rect last_animation_progressed_bounds_;
162 162
163 content::NotificationRegistrar registrar_; 163 content::NotificationRegistrar registrar_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 165 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
166 }; 166 };
167 167
168 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 168 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.mm ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698