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

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: TODO for transformable views Created 9 years, 8 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 b5812a921f44afa26a438897185b1b06809e2b1d..9efd1435c7fbebe1d12e626d28f0f2697cf694d7 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.
sky 2011/04/06 15:11:50 This last sentence is incomplete.
wyck 2011/04/06 20:14:24 Fixed
+
+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