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

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

Issue 7065052: Improve large tab strip by leveraging touch icons when present (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming as per tfarina Created 9 years, 6 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 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698