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

Side by Side Diff: chrome/browser/ui/views/tabs/side_tab_strip.h

Issue 7033048: Multi-tab: Adding new Notification when tab selection changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing 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
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 14
14 class SideTabStrip : public BaseTabStrip, public views::ButtonListener { 15 class SideTabStrip : public BaseTabStrip, public views::ButtonListener {
15 public: 16 public:
16 // The tabs are inset by this much along all axis. 17 // The tabs are inset by this much along all axis.
17 static const int kTabStripInset; 18 static const int kTabStripInset;
18 19
19 explicit SideTabStrip(TabStripController* controller); 20 explicit SideTabStrip(TabStripController* controller);
20 virtual ~SideTabStrip(); 21 virtual ~SideTabStrip();
21 22
22 // AbstractTabStripView implementation: 23 // AbstractTabStripView implementation:
23 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; 24 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE;
24 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; 25 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE;
25 26
26 // BaseTabStrip implementation: 27 // BaseTabStrip implementation:
27 virtual void StartHighlight(int model_index) OVERRIDE; 28 virtual void StartHighlight(int model_index) OVERRIDE;
28 virtual void StopAllHighlighting() OVERRIDE; 29 virtual void StopAllHighlighting() OVERRIDE;
29 virtual BaseTab* CreateTabForDragging() OVERRIDE; 30 virtual BaseTab* CreateTabForDragging() OVERRIDE;
30 virtual void RemoveTabAt(int model_index) OVERRIDE; 31 virtual void RemoveTabAt(int model_index) OVERRIDE;
31 virtual void SelectTabAt(int old_model_index, int new_model_index) OVERRIDE; 32 virtual void SetSelection(
33 const TabStripSelectionModel& old_selection,
34 const TabStripSelectionModel& new_selection) OVERRIDE;
32 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; 35 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE;
33 36
34 // views::View overrides: 37 // views::View overrides:
35 virtual gfx::Size GetPreferredSize() OVERRIDE; 38 virtual gfx::Size GetPreferredSize() OVERRIDE;
36 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE; 39 virtual void PaintChildren(gfx::Canvas* canvas) OVERRIDE;
37 virtual views::View* GetEventHandlerForPoint( 40 virtual views::View* GetEventHandlerForPoint(
38 const gfx::Point& point) OVERRIDE; 41 const gfx::Point& point) OVERRIDE;
39 42
40 // views::ButtonListener overrides: 43 // views::ButtonListener overrides:
41 virtual void ButtonPressed(views::Button* sender, 44 virtual void ButtonPressed(views::Button* sender,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 int first_tab_y_offset_; 98 int first_tab_y_offset_;
96 99
97 // Height needed to display the tabs, separator and new tab button. Doesn't 100 // Height needed to display the tabs, separator and new tab button. Doesn't
98 // include any padding. 101 // include any padding.
99 int ideal_height_; 102 int ideal_height_;
100 103
101 DISALLOW_COPY_AND_ASSIGN(SideTabStrip); 104 DISALLOW_COPY_AND_ASSIGN(SideTabStrip);
102 }; 105 };
103 106
104 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_ 107 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('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