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

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

Issue 7529011: Add a flag that lets the webstore show a different UI on app install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review Created 9 years, 4 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/tabs/base_tab_strip.h" 9 #include "chrome/browser/ui/views/tabs/base_tab_strip.h"
10 10
(...skipping 16 matching lines...) Expand all
27 // TODO(wyck): Use transformable views for scrolling. 27 // TODO(wyck): Use transformable views for scrolling.
28 /////////////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////////////
29 class TouchTabStrip : public BaseTabStrip { 29 class TouchTabStrip : public BaseTabStrip {
30 public: 30 public:
31 explicit TouchTabStrip(TabStripController* controller); 31 explicit TouchTabStrip(TabStripController* controller);
32 virtual ~TouchTabStrip(); 32 virtual ~TouchTabStrip();
33 33
34 // AbstractTabStripView implementation: 34 // AbstractTabStripView implementation:
35 virtual bool IsPositionInWindowCaption(const gfx::Point& point); 35 virtual bool IsPositionInWindowCaption(const gfx::Point& point);
36 virtual void SetBackgroundOffset(const gfx::Point& offset); 36 virtual void SetBackgroundOffset(const gfx::Point& offset);
37 virtual views::View* GetNewTabButton() OVERRIDE { return NULL; }
sky 2011/08/03 22:23:24 Don't inline virtual methods.
asargent_no_longer_on_chrome 2011/08/04 00:00:16 Done.
37 38
38 // BaseTabStrip implementation: 39 // BaseTabStrip implementation:
39 virtual void PrepareForCloseAt(int model_index); 40 virtual void PrepareForCloseAt(int model_index);
40 virtual void StartHighlight(int model_index); 41 virtual void StartHighlight(int model_index);
41 virtual void StopAllHighlighting(); 42 virtual void StopAllHighlighting();
42 virtual BaseTab* CreateTabForDragging(); 43 virtual BaseTab* CreateTabForDragging();
43 virtual void RemoveTabAt(int model_index); 44 virtual void RemoveTabAt(int model_index);
44 virtual void SetSelection(const TabStripSelectionModel& old_selection, 45 virtual void SetSelection(const TabStripSelectionModel& old_selection,
45 const TabStripSelectionModel& new_selection); 46 const TabStripSelectionModel& new_selection);
46 virtual void TabTitleChangedNotLoading(int model_index); 47 virtual void TabTitleChangedNotLoading(int model_index);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 TouchTab* initial_tab_; 135 TouchTab* initial_tab_;
135 136
136 // The minimum value that |scroll_offset_| can have. Based on the total 137 // The minimum value that |scroll_offset_| can have. Based on the total
137 // width of all the content to be scrolled, less the viewport size. 138 // width of all the content to be scrolled, less the viewport size.
138 int min_scroll_offset_; 139 int min_scroll_offset_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(TouchTabStrip); 141 DISALLOW_COPY_AND_ASSIGN(TouchTabStrip);
141 }; 142 };
142 143
143 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_ 144 #endif // CHROME_BROWSER_UI_TOUCH_TABS_TOUCH_TAB_STRIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698