OLD | NEW |
| (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_ | |
OLD | NEW |