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

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: fixcaller 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 gfx::Point last_mouse_move_location_; 657 gfx::Point last_mouse_move_location_;
658 658
659 // Time of the last mouse move event. 659 // Time of the last mouse move event.
660 base::TimeTicks last_mouse_move_time_; 660 base::TimeTicks last_mouse_move_time_;
661 661
662 // Number of mouse moves. 662 // Number of mouse moves.
663 int mouse_move_count_; 663 int mouse_move_count_;
664 664
665 // Timer used when a tab is closed and we need to relayout. Only used when a 665 // Timer used when a tab is closed and we need to relayout. Only used when a
666 // tab close comes from a touch device. 666 // tab close comes from a touch device.
667 base::OneShotTimer<TabStrip> resize_layout_timer_; 667 base::OneShotTimer resize_layout_timer_;
668 668
669 // True if tabs are painted as rectangular light-bars. 669 // True if tabs are painted as rectangular light-bars.
670 bool immersive_style_; 670 bool immersive_style_;
671 671
672 // Our observers. 672 // Our observers.
673 typedef base::ObserverList<TabStripObserver> TabStripObservers; 673 typedef base::ObserverList<TabStripObserver> TabStripObservers;
674 TabStripObservers observers_; 674 TabStripObservers observers_;
675 675
676 DISALLOW_COPY_AND_ASSIGN(TabStrip); 676 DISALLOW_COPY_AND_ASSIGN(TabStrip);
677 }; 677 };
678 678
679 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 679 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.h ('k') | chrome/browser/ui/views/toolbar/reload_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698