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

Side by Side Diff: chrome/browser/ui/views/tabs/side_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: removed files added in separate CL (r95432) 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_VIEWS_TABS_SIDE_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_SIDE_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 #include "views/controls/button/button.h" 10 #include "views/controls/button/button.h"
11 11
12 struct TabRendererData; 12 struct TabRendererData;
13 class TabStripSelectionModel; 13 class TabStripSelectionModel;
14 14
15 class SideTabStrip : public BaseTabStrip, public views::ButtonListener { 15 class SideTabStrip : public BaseTabStrip, public views::ButtonListener {
16 public: 16 public:
17 // The tabs are inset by this much along all axis. 17 // The tabs are inset by this much along all axis.
18 static const int kTabStripInset; 18 static const int kTabStripInset;
19 19
20 explicit SideTabStrip(TabStripController* controller); 20 explicit SideTabStrip(TabStripController* controller);
21 virtual ~SideTabStrip(); 21 virtual ~SideTabStrip();
22 22
23 // AbstractTabStripView implementation: 23 // AbstractTabStripView implementation:
24 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; 24 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE;
25 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; 25 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE;
26 virtual views::View* GetNewTabButton() OVERRIDE;
26 27
27 // BaseTabStrip implementation: 28 // BaseTabStrip implementation:
28 virtual void StartHighlight(int model_index) OVERRIDE; 29 virtual void StartHighlight(int model_index) OVERRIDE;
29 virtual void StopAllHighlighting() OVERRIDE; 30 virtual void StopAllHighlighting() OVERRIDE;
30 virtual BaseTab* CreateTabForDragging() OVERRIDE; 31 virtual BaseTab* CreateTabForDragging() OVERRIDE;
31 virtual void RemoveTabAt(int model_index) OVERRIDE; 32 virtual void RemoveTabAt(int model_index) OVERRIDE;
32 virtual void SetSelection( 33 virtual void SetSelection(
33 const TabStripSelectionModel& old_selection, 34 const TabStripSelectionModel& old_selection,
34 const TabStripSelectionModel& new_selection) OVERRIDE; 35 const TabStripSelectionModel& new_selection) OVERRIDE;
35 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; 36 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int first_tab_y_offset_; 99 int first_tab_y_offset_;
99 100
100 // Height needed to display the tabs, separator and new tab button. Doesn't 101 // Height needed to display the tabs, separator and new tab button. Doesn't
101 // include any padding. 102 // include any padding.
102 int ideal_height_; 103 int ideal_height_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(SideTabStrip); 105 DISALLOW_COPY_AND_ASSIGN(SideTabStrip);
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_ 108 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/abstract_tab_strip_view.h ('k') | chrome/browser/ui/views/tabs/side_tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698