OLD | NEW |
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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual views::View* GetEventHandlerForPoint( | 37 virtual views::View* GetEventHandlerForPoint( |
38 const gfx::Point& point) OVERRIDE; | 38 const gfx::Point& point) OVERRIDE; |
39 | 39 |
40 // views::ButtonListener overrides: | 40 // views::ButtonListener overrides: |
41 virtual void ButtonPressed(views::Button* sender, | 41 virtual void ButtonPressed(views::Button* sender, |
42 const views::Event& event) OVERRIDE; | 42 const views::Event& event) OVERRIDE; |
43 | 43 |
44 protected: | 44 protected: |
45 // BaseTabStrip overrides: | 45 // BaseTabStrip overrides: |
46 virtual BaseTab* CreateTab() OVERRIDE; | 46 virtual BaseTab* CreateTab() OVERRIDE; |
47 virtual bool IgnoreTitlePrefixEliding(BaseTab* tab) OVERRIDE; | |
48 virtual void GenerateIdealBounds() OVERRIDE; | 47 virtual void GenerateIdealBounds() OVERRIDE; |
49 virtual void StartInsertTabAnimation(int model_index) OVERRIDE; | 48 virtual void StartInsertTabAnimation(int model_index) OVERRIDE; |
50 virtual void AnimateToIdealBounds() OVERRIDE; | 49 virtual void AnimateToIdealBounds() OVERRIDE; |
51 virtual void DoLayout() OVERRIDE; | 50 virtual void DoLayout() OVERRIDE; |
52 virtual void LayoutDraggedTabsAt(const std::vector<BaseTab*>& tabs, | 51 virtual void LayoutDraggedTabsAt(const std::vector<BaseTab*>& tabs, |
53 BaseTab* active_tab, | 52 BaseTab* active_tab, |
54 const gfx::Point& location, | 53 const gfx::Point& location, |
55 bool initial_drag) OVERRIDE; | 54 bool initial_drag) OVERRIDE; |
56 virtual void CalculateBoundsForDraggedTabs( | 55 virtual void CalculateBoundsForDraggedTabs( |
57 const std::vector<BaseTab*>& tabs, | 56 const std::vector<BaseTab*>& tabs, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int first_tab_y_offset_; | 95 int first_tab_y_offset_; |
97 | 96 |
98 // Height needed to display the tabs, separator and new tab button. Doesn't | 97 // Height needed to display the tabs, separator and new tab button. Doesn't |
99 // include any padding. | 98 // include any padding. |
100 int ideal_height_; | 99 int ideal_height_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(SideTabStrip); | 101 DISALLOW_COPY_AND_ASSIGN(SideTabStrip); |
103 }; | 102 }; |
104 | 103 |
105 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_ | 104 #endif // CHROME_BROWSER_UI_VIEWS_TABS_SIDE_TAB_STRIP_H_ |
OLD | NEW |