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

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

Issue 8826002: Panels: Adding 3-step animation on minimize on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void DestroyPanelBrowser() OVERRIDE; 97 virtual void DestroyPanelBrowser() OVERRIDE;
98 virtual gfx::Size WindowSizeFromContentSize( 98 virtual gfx::Size WindowSizeFromContentSize(
99 const gfx::Size& content_size) const OVERRIDE; 99 const gfx::Size& content_size) const OVERRIDE;
100 virtual gfx::Size ContentSizeFromWindowSize( 100 virtual gfx::Size ContentSizeFromWindowSize(
101 const gfx::Size& window_size) const OVERRIDE; 101 const gfx::Size& window_size) const OVERRIDE;
102 virtual int TitleOnlyHeight() const OVERRIDE; 102 virtual int TitleOnlyHeight() const OVERRIDE;
103 virtual gfx::Size IconOnlySize() const OVERRIDE; 103 virtual gfx::Size IconOnlySize() const OVERRIDE;
104 virtual void EnsurePanelFullyVisible() OVERRIDE; 104 virtual void EnsurePanelFullyVisible() OVERRIDE;
105 105
106 private: 106 private:
107 void StartBoundsAnimation(const gfx::Rect& current_bounds); 107 void StartBoundsAnimation(const gfx::Rect& from_bounds,
108 const gfx::Rect& to_bounds);
108 bool IsAnimatingBounds() const; 109 bool IsAnimatingBounds() const;
109 110
110 // MessageLoop::Observer implementation: 111 // MessageLoop::Observer implementation:
111 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 112 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
112 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 113 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
113 114
114 // Overridden from AnimationDelegate: 115 // Overridden from AnimationDelegate:
115 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 116 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
116 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 117 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
117 118
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 base::Time disableMinimizeUntilTime_; 189 base::Time disableMinimizeUntilTime_;
189 190
190 // Used to animate the bounds change. 191 // Used to animate the bounds change.
191 scoped_ptr<ui::SlideAnimation> bounds_animator_; 192 scoped_ptr<ui::SlideAnimation> bounds_animator_;
192 gfx::Rect animation_start_bounds_; 193 gfx::Rect animation_start_bounds_;
193 194
194 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 195 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
195 }; 196 };
196 197
197 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 198 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view_browsertest.cc ('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