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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: . Created 5 years, 3 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_TABS_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 gfx::Point last_mouse_move_location_; 660 gfx::Point last_mouse_move_location_;
661 661
662 // Time of the last mouse move event. 662 // Time of the last mouse move event.
663 base::TimeTicks last_mouse_move_time_; 663 base::TimeTicks last_mouse_move_time_;
664 664
665 // Number of mouse moves. 665 // Number of mouse moves.
666 int mouse_move_count_; 666 int mouse_move_count_;
667 667
668 // Timer used when a tab is closed and we need to relayout. Only used when a 668 // Timer used when a tab is closed and we need to relayout. Only used when a
669 // tab close comes from a touch device. 669 // tab close comes from a touch device.
670 base::OneShotTimer<TabStrip> resize_layout_timer_; 670 base::OneShotTimer resize_layout_timer_;
671 671
672 // True if tabs are painted as rectangular light-bars. 672 // True if tabs are painted as rectangular light-bars.
673 bool immersive_style_; 673 bool immersive_style_;
674 674
675 // Our observers. 675 // Our observers.
676 typedef base::ObserverList<TabStripObserver> TabStripObservers; 676 typedef base::ObserverList<TabStripObserver> TabStripObservers;
677 TabStripObservers observers_; 677 TabStripObservers observers_;
678 678
679 DISALLOW_COPY_AND_ASSIGN(TabStrip); 679 DISALLOW_COPY_AND_ASSIGN(TabStrip);
680 }; 680 };
681 681
682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698