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

Side by Side Diff: chrome/browser/ui/touch/tabs/touch_tab_strip.h

Issue 8678015: Touch constants and dead code removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Sadrul's comments Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
7 #pragma once
8
9 #include "chrome/browser/ui/views/tabs/tab_strip.h"
10
11 namespace ui {
12 enum TouchStatus;
13 }
14
15 class TouchTab;
16
17 ///////////////////////////////////////////////////////////////////////////////
18 //
19 // TouchTabStrip
20 //
21 // A View that overrides Touch specific behavior.
22 //
23 ///////////////////////////////////////////////////////////////////////////////
24 class TouchTabStrip : public TabStrip {
25 public:
26 explicit TouchTabStrip(TabStripController* controller);
27 virtual ~TouchTabStrip();
28
29 // views::View overrides:
30 virtual void OnDragEntered(const views::DropTargetEvent& event) OVERRIDE;
31 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE;
32 virtual void OnDragExited() OVERRIDE;
33 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE;
34
35 protected:
36 // BaseTabStrip overrides:
37 virtual BaseTab* CreateTab() OVERRIDE;
38
39 private:
40 virtual ui::TouchStatus OnTouchEvent(const views::TouchEvent& event) OVERRIDE;
41
42 DISALLOW_COPY_AND_ASSIGN(TouchTabStrip);
43 };
44
45 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/tabs/touch_tab.cc ('k') | chrome/browser/ui/touch/tabs/touch_tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698