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

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

Issue 8879005: Fix bug where panels sometimes don't align on bottom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to latest 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('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) 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // want to minimize it on subsequent mouseUp. 186 // want to minimize it on subsequent mouseUp.
187 // We use time interval because the window may gain focus in various ways 187 // We use time interval because the window may gain focus in various ways
188 // (via keyboard for example) which are not distinguishable at this point. 188 // (via keyboard for example) which are not distinguishable at this point.
189 // Apparently this disable interval is not affecting the user in other cases. 189 // Apparently this disable interval is not affecting the user in other cases.
190 base::Time disableMinimizeUntilTime_; 190 base::Time disableMinimizeUntilTime_;
191 191
192 // Used to animate the bounds change. 192 // Used to animate the bounds change.
193 scoped_ptr<ui::SlideAnimation> bounds_animator_; 193 scoped_ptr<ui::SlideAnimation> bounds_animator_;
194 gfx::Rect animation_start_bounds_; 194 gfx::Rect animation_start_bounds_;
195 195
196 // This records the bounds set on the last animation progress notification.
197 // We need this for the case where a new bounds animation starts before the
198 // current one completes. In this case, we want to start the new animation
199 // from where the last one left.
200 gfx::Rect last_animation_progressed_bounds_;
201
196 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 202 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
197 }; 203 };
198 204
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 205 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698