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

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

Issue 12660016: Make long press & release to trigger context menu on tab (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // See description above SetLayoutType(). 580 // See description above SetLayoutType().
581 bool adjust_layout_; 581 bool adjust_layout_;
582 582
583 // Only used while in touch mode. 583 // Only used while in touch mode.
584 scoped_ptr<StackedTabStripLayout> touch_layout_; 584 scoped_ptr<StackedTabStripLayout> touch_layout_;
585 585
586 // If true the layout type is set to TAB_STRIP_LAYOUT_SHRINK when the mouse 586 // If true the layout type is set to TAB_STRIP_LAYOUT_SHRINK when the mouse
587 // exits the tabstrip (as determined using MouseWatcher). 587 // exits the tabstrip (as determined using MouseWatcher).
588 bool reset_to_shrink_on_exit_; 588 bool reset_to_shrink_on_exit_;
589 589
590 // If there was tab dragging from touch gestrue.
591 bool was_dragging_;
592
593 // If there was long press gesture event.
594 bool had_gesture_long_press_;
595
596 // Position of the last long press gesture event.
597 gfx::Point last_long_press_location_;
598
590 // Location of the mouse at the time of the last move. 599 // Location of the mouse at the time of the last move.
591 gfx::Point last_mouse_move_location_; 600 gfx::Point last_mouse_move_location_;
592 601
593 // Time of the last mouse move event. 602 // Time of the last mouse move event.
594 base::TimeTicks last_mouse_move_time_; 603 base::TimeTicks last_mouse_move_time_;
595 604
596 // Number of mouse moves. 605 // Number of mouse moves.
597 int mouse_move_count_; 606 int mouse_move_count_;
598 607
599 // Timer used when a tab is closed and we need to relayout. Only used when a 608 // Timer used when a tab is closed and we need to relayout. Only used when a
600 // tab close comes from a touch device. 609 // tab close comes from a touch device.
601 base::OneShotTimer<TabStrip> resize_layout_timer_; 610 base::OneShotTimer<TabStrip> resize_layout_timer_;
602 611
603 // True if tabs are painted as rectangular light-bars. 612 // True if tabs are painted as rectangular light-bars.
604 bool immersive_style_; 613 bool immersive_style_;
605 614
606 // Our observers. 615 // Our observers.
607 typedef ObserverList<TabStripObserver> TabStripObservers; 616 typedef ObserverList<TabStripObserver> TabStripObservers;
608 TabStripObservers observers_; 617 TabStripObservers observers_;
609 618
610 DISALLOW_COPY_AND_ASSIGN(TabStrip); 619 DISALLOW_COPY_AND_ASSIGN(TabStrip);
611 }; 620 };
612 621
613 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 622 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698