| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // want to minimize it on subsequent mouseUp. | 184 // want to minimize it on subsequent mouseUp. |
| 185 // We use time interval because the window may gain focus in various ways | 185 // We use time interval because the window may gain focus in various ways |
| 186 // (via keyboard for example) which are not distinguishable at this point. | 186 // (via keyboard for example) which are not distinguishable at this point. |
| 187 // Apparently this disable interval is not affecting the user in other cases. | 187 // Apparently this disable interval is not affecting the user in other cases. |
| 188 base::Time disableMinimizeUntilTime_; | 188 base::Time disableMinimizeUntilTime_; |
| 189 | 189 |
| 190 // Used to animate the bounds change. | 190 // Used to animate the bounds change. |
| 191 scoped_ptr<ui::SlideAnimation> bounds_animator_; | 191 scoped_ptr<ui::SlideAnimation> bounds_animator_; |
| 192 gfx::Rect animation_start_bounds_; | 192 gfx::Rect animation_start_bounds_; |
| 193 | 193 |
| 194 // This records the bounds set on the last animation progress notification. |
| 195 // We need this for the case where a new bounds animation starts before the |
| 196 // current one completes. In this case, we want to start the new animation |
| 197 // from where the last one left. |
| 198 gfx::Rect last_animation_progressed_bounds_; |
| 199 |
| 194 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 200 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
| 195 }; | 201 }; |
| 196 | 202 |
| 197 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 203 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |