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 "chrome/browser/favicon/favicon_service.h" | |
10 #include "chrome/browser/history/history.h" | |
11 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | |
12 | |
13 class TouchTab; | |
14 class TouchTabStrip; | |
15 | |
16 class TouchTabStripController : public BrowserTabStripController { | |
17 public: | |
18 TouchTabStripController(Browser* browser, TabStripModel* model); | |
19 virtual ~TouchTabStripController(); | |
20 | |
21 virtual void TabDetachedAt(TabContentsWrapper* contents, | |
22 int model_index) OVERRIDE; | |
23 | |
24 virtual void TabChangedAt(TabContentsWrapper* contents, | |
25 int model_index, | |
26 TabChangeType change_type) OVERRIDE; | |
27 | |
28 protected: | |
29 virtual void SetTabRendererDataFromModel(TabContents* contents, | |
30 int model_index, | |
31 TabRendererData* data, | |
32 TabStatus tab_status) OVERRIDE; | |
33 | |
34 const TouchTabStrip* tabstrip() const; | |
35 | |
36 private: | |
37 void OnTouchIconAvailable(FaviconService::Handle h, | |
38 history::FaviconData favicon); | |
39 | |
40 // Our consumer for touch icon requests. | |
41 CancelableRequestConsumerTSimple<TouchTab*> consumer_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(TouchTabStripController); | |
44 }; | |
45 | |
46 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_CONTROLLER_H_ | |
OLD | NEW |