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

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: Applied comments from sky 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 "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 // Subclassing BrowserTabStripController to provide touch specific behavior.
brettw 2011/06/17 16:20:49 This comment seems like it just says the same thin
Emmanuel Saint-loubert-Bié 2011/06/17 16:52:44 Done.
17 class TouchTabStripController: public BrowserTabStripController {
brettw 2011/06/17 16:20:49 Space before colon.
Emmanuel Saint-loubert-Bié 2011/06/17 16:52:44 Done.
18 public:
19 TouchTabStripController(Browser* browser, TabStripModel* model);
20 virtual ~TouchTabStripController();
21
22 virtual void TabDetachedAt(TabContentsWrapper* contents,
23 int model_index) OVERRIDE;
24
25 virtual void TabChangedAt(TabContentsWrapper* contents,
26 int model_index,
27 TabChangeType change_type) OVERRIDE;
28
29 protected:
30 virtual void SetTabRendererDataFromModel(TabContents* contents,
31 int model_index,
32 TabRendererData* data,
33 TabStatus tab_status) OVERRIDE;
34
35 const TouchTabStrip* tabstrip() const;
36
37 private:
38 void OnTouchIconAvailable(FaviconService::Handle h,
39 history::FaviconData favicon);
40
41 // Our consumer for touch icon requests
brettw 2011/06/17 16:20:49 Make sure your comments end with periods.
Emmanuel Saint-loubert-Bié 2011/06/17 16:52:44 Done.
42 CancelableRequestConsumerTSimple<TouchTab*> consumer_;
43
44 DISALLOW_COPY_AND_ASSIGN(TouchTabStripController);
45 };
46
47 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698