OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_TABS_TAB_STRIP_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
7 | 7 |
8 #include "base/gfx/point.h" | 8 #include "base/gfx/point.h" |
9 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
10 #include "chrome/browser/views/tabs/tab.h" | 10 #include "chrome/browser/views/tabs/tab.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 // A factory that is used to construct a delayed callback to the | 287 // A factory that is used to construct a delayed callback to the |
288 // ResizeLayoutTabsNow method. | 288 // ResizeLayoutTabsNow method. |
289 ScopedRunnableMethodFactory<TabStrip> resize_layout_factory_; | 289 ScopedRunnableMethodFactory<TabStrip> resize_layout_factory_; |
290 | 290 |
291 // True if the TabStrip has already been added as a MessageLoop observer. | 291 // True if the TabStrip has already been added as a MessageLoop observer. |
292 bool added_as_message_loop_observer_; | 292 bool added_as_message_loop_observer_; |
293 | 293 |
294 // True if a resize layout animation should be run a short delay after the | 294 // True if a resize layout animation should be run a short delay after the |
295 // mouse exits the TabStrip. | 295 // mouse exits the TabStrip. |
296 // TODO(beng): (Cleanup) this would be better named "needs_resize_layout_". | 296 bool needs_resize_layout_; |
297 bool resize_layout_scheduled_; | |
298 | 297 |
299 // The timer used to update frames for the Loading Animation. | 298 // The timer used to update frames for the Loading Animation. |
300 base::RepeatingTimer<TabStrip> loading_animation_timer_; | 299 base::RepeatingTimer<TabStrip> loading_animation_timer_; |
301 | 300 |
302 // The "New Tab" button. | 301 // The "New Tab" button. |
303 ChromeViews::Button* newtab_button_; | 302 ChromeViews::Button* newtab_button_; |
304 gfx::Size newtab_button_size_; | 303 gfx::Size newtab_button_size_; |
305 gfx::Size actual_newtab_button_size_; | 304 gfx::Size actual_newtab_button_size_; |
306 | 305 |
307 // The current widths of various types of tabs. We save these so that, as | 306 // The current widths of various types of tabs. We save these so that, as |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 std::vector<TabData> tab_data_; | 363 std::vector<TabData> tab_data_; |
365 | 364 |
366 // The currently running animation. | 365 // The currently running animation. |
367 scoped_ptr<TabAnimation> active_animation_; | 366 scoped_ptr<TabAnimation> active_animation_; |
368 | 367 |
369 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); | 368 DISALLOW_EVIL_CONSTRUCTORS(TabStrip); |
370 }; | 369 }; |
371 | 370 |
372 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ | 371 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_H__ |
373 | 372 |
OLD | NEW |