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

Unified Diff: chrome/browser/ui/views/ash/tab_scrubber.h

Issue 11411247: Support 3f swipe for tab scrubbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/ash/tab_scrubber.h
diff --git a/chrome/browser/ui/views/ash/tab_scrubber.h b/chrome/browser/ui/views/ash/tab_scrubber.h
index a9da901d4446aecd72131e7670b68cf993dbd8e2..5280938163dfbf94505561d64fb160d835c243c1 100644
--- a/chrome/browser/ui/views/ash/tab_scrubber.h
+++ b/chrome/browser/ui/views/ash/tab_scrubber.h
@@ -26,7 +26,7 @@ class TabScrubber : public ui::EventHandler,
virtual ~TabScrubber();
// ui::EventHandler overrides:
- virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
+ virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
// content::NotificationObserver overrides:
virtual void Observe(int type,
@@ -34,16 +34,16 @@ class TabScrubber : public ui::EventHandler,
const content::NotificationDetails& details) OVERRIDE;
Browser* GetActiveBrowser();
+ void StartScrubbing();
void StopScrubbing();
// Indicates that we are currently scrubbing.
bool scrubbing_;
// The browser that we are scrubbing.
Browser* browser_;
- // The tab that was active when we started scrubbing.
- int initial_tab_index_;
// The x value of the event that initiated scrubbing.
- int initial_x_;
+ float scroll_x_;
+ float scroll_y_;
content::NotificationRegistrar registrar_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/tab_scrubber.cc » ('j') | chrome/browser/ui/views/ash/tab_scrubber.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698