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

Unified Diff: chrome/browser/ui/touch/tabs/touch_tab.cc

Issue 6750007: Scrolling Tabs (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: self review 1 Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/touch/tabs/touch_tab.cc
diff --git a/chrome/browser/ui/touch/tabs/touch_tab.cc b/chrome/browser/ui/touch/tabs/touch_tab.cc
index 12457992afd242f2caca61544c784b4c216fdaa3..ecf5399d076b2378bad7d4ae8bda1a84d8759cbc 100644
--- a/chrome/browser/ui/touch/tabs/touch_tab.cc
+++ b/chrome/browser/ui/touch/tabs/touch_tab.cc
@@ -57,6 +57,20 @@ const gfx::Rect& TouchTab::GetIconBounds() const {
////////////////////////////////////////////////////////////////////////////////
// TouchTab, views::View overrides:
+// We'll get selected via the mouse interactions with the TouchTabStrip. There
+// is need to directly handle the mouse movements in the TouchTab.
+
+bool TouchTab::OnMousePressed(const views::MouseEvent& event) {
+ return false;
+}
+
+bool TouchTab::OnMouseDragged(const views::MouseEvent& event) {
+ return false;
+}
+
+void TouchTab::OnMouseReleased(const views::MouseEvent& event, bool canceled) {
+}
+
void TouchTab::OnPaint(gfx::Canvas* canvas) {
// Don't paint if we're narrower than we can render correctly. (This should
// only happen during animations).

Powered by Google App Engine
This is Rietveld 408576698