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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller.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_DRAG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // restored properly when a drag begins and ends within this same window. 503 // restored properly when a drag begins and ends within this same window.
504 const int old_focused_view_id_; 504 const int old_focused_view_id_;
505 505
506 // The horizontal position of the mouse cursor in screen coordinates at the 506 // The horizontal position of the mouse cursor in screen coordinates at the
507 // time of the last re-order event. 507 // time of the last re-order event.
508 int last_move_screen_loc_; 508 int last_move_screen_loc_;
509 509
510 // Timer used to bring the window under the cursor to front. If the user 510 // Timer used to bring the window under the cursor to front. If the user
511 // stops moving the mouse for a brief time over a browser window, it is 511 // stops moving the mouse for a brief time over a browser window, it is
512 // brought to front. 512 // brought to front.
513 base::OneShotTimer<TabDragController> bring_to_front_timer_; 513 base::OneShotTimer bring_to_front_timer_;
514 514
515 // Timer used to move the stacked tabs. See comment aboue 515 // Timer used to move the stacked tabs. See comment aboue
516 // StartMoveStackedTimerIfNecessary(). 516 // StartMoveStackedTimerIfNecessary().
517 base::OneShotTimer<TabDragController> move_stacked_timer_; 517 base::OneShotTimer move_stacked_timer_;
518 518
519 // Did the mouse move enough that we started a drag? 519 // Did the mouse move enough that we started a drag?
520 bool started_drag_; 520 bool started_drag_;
521 521
522 // Is the drag active? 522 // Is the drag active?
523 bool active_; 523 bool active_;
524 524
525 DragData drag_data_; 525 DragData drag_data_;
526 526
527 // Index of the source tab in |drag_data_|. 527 // Index of the source tab in |drag_data_|.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 int attach_index_; 599 int attach_index_;
600 600
601 scoped_ptr<ui::EventHandler> escape_tracker_; 601 scoped_ptr<ui::EventHandler> escape_tracker_;
602 602
603 base::WeakPtrFactory<TabDragController> weak_factory_; 603 base::WeakPtrFactory<TabDragController> weak_factory_;
604 604
605 DISALLOW_COPY_AND_ASSIGN(TabDragController); 605 DISALLOW_COPY_AND_ASSIGN(TabDragController);
606 }; 606 };
607 607
608 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 608 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698