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

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

Issue 8678015: Touch constants and dead code removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Sadrul's comments Created 9 years, 1 month 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_H_
6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_
7 #pragma once
8
9 #include "chrome/browser/ui/views/tabs/tab.h"
10
11 ///////////////////////////////////////////////////////////////////////////////
12 //
13 // TouchTab
14 //
15 // A View that renders a TouchTab in a TouchTabStrip
16 //
17 ///////////////////////////////////////////////////////////////////////////////
18 class TouchTab : public Tab {
19 public:
20 // The size of the favicon touch area.
21 static const int kTouchTargetIconSize = 32;
22
23 explicit TouchTab(TabController* controller);
24 virtual ~TouchTab();
25
26 // get and set touch icon
27 void set_touch_icon(const SkBitmap& bitmap) {
28 touch_icon_ = bitmap;
29 }
30 const SkBitmap& touch_icon() const {
31 return touch_icon_;
32 }
33
34 protected:
35 // Returns whether the Tab should display a close button.
36 virtual bool ShouldShowCloseBox() const OVERRIDE;
37
38 private:
39 // The touch icon found
40 SkBitmap touch_icon_;
41
42 DISALLOW_COPY_AND_ASSIGN(TouchTab);
43 };
44
45 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/tabs/tab_strip_factory.cc ('k') | chrome/browser/ui/touch/tabs/touch_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698