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_CONTROLLER_H_ | |
6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_CONTROLLER_H_ | |
7 #pragma once | |
8 | |
9 #include <map> | |
sky
2011/06/17 15:34:55
Remove this include.
Emmanuel Saint-loubert-Bié
2011/06/17 16:11:23
Done.
| |
10 #include <vector> | |
11 | |
12 #include "chrome/browser/favicon/favicon_service.h" | |
13 #include "chrome/browser/history/history.h" | |
14 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | |
15 | |
16 class TouchTab; | |
17 class TouchTabStrip; | |
18 | |
19 // Subclassing BrowserTabStripController to provide touch specific behavior. | |
20 class TouchTabStripController: public BrowserTabStripController { | |
21 public: | |
22 TouchTabStripController(Browser* browser, TabStripModel* model); | |
23 virtual ~TouchTabStripController(); | |
24 | |
25 virtual void TabDetachedAt(TabContentsWrapper* contents, | |
26 int model_index) OVERRIDE; | |
27 | |
28 virtual void TabChangedAt(TabContentsWrapper* contents, | |
29 int model_index, | |
30 TabChangeType change_type) OVERRIDE; | |
31 | |
32 protected: | |
33 virtual void SetTabRendererDataFromModel(TabContents* contents, | |
34 int model_index, | |
35 TabRendererData* data, | |
36 TabStatus tab_status) OVERRIDE; | |
37 | |
38 const TouchTabStrip* tabstrip() const; | |
39 | |
40 private: | |
41 void OnTouchIconAvailable(FaviconService::Handle h, | |
42 history::FaviconData favicon); | |
43 | |
44 // Our consumer for touch icon requests | |
45 CancelableRequestConsumerTSimple<TouchTab*> consumer_; | |
46 | |
47 DISALLOW_COPY_AND_ASSIGN(TouchTabStripController); | |
48 }; | |
49 | |
50 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_CONTROLLER_H_ | |
OLD | NEW |