OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |