| 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_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // Does he new tab button need to be sized to the top of the tab strip? | 48 // Does he new tab button need to be sized to the top of the tab strip? |
| 49 bool SizeTabButtonToTopOfTabStrip(); | 49 bool SizeTabButtonToTopOfTabStrip(); |
| 50 | 50 |
| 51 // MouseWatcherListener overrides: | 51 // MouseWatcherListener overrides: |
| 52 virtual void MouseMovedOutOfView() OVERRIDE; | 52 virtual void MouseMovedOutOfView() OVERRIDE; |
| 53 | 53 |
| 54 // AbstractTabStripView implementation: | 54 // AbstractTabStripView implementation: |
| 55 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; | 55 virtual bool IsPositionInWindowCaption(const gfx::Point& point) OVERRIDE; |
| 56 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; | 56 virtual void SetBackgroundOffset(const gfx::Point& offset) OVERRIDE; |
| 57 virtual views::View* GetNewTabButton() OVERRIDE; |
| 57 | 58 |
| 58 // BaseTabStrip implementation: | 59 // BaseTabStrip implementation: |
| 59 virtual void PrepareForCloseAt(int model_index) OVERRIDE; | 60 virtual void PrepareForCloseAt(int model_index) OVERRIDE; |
| 60 virtual void RemoveTabAt(int model_index) OVERRIDE; | 61 virtual void RemoveTabAt(int model_index) OVERRIDE; |
| 61 virtual void SetSelection( | 62 virtual void SetSelection( |
| 62 const TabStripSelectionModel& old_selection, | 63 const TabStripSelectionModel& old_selection, |
| 63 const TabStripSelectionModel& new_selection) OVERRIDE; | 64 const TabStripSelectionModel& new_selection) OVERRIDE; |
| 64 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; | 65 virtual void TabTitleChangedNotLoading(int model_index) OVERRIDE; |
| 65 virtual void StartHighlight(int model_index) OVERRIDE; | 66 virtual void StartHighlight(int model_index) OVERRIDE; |
| 66 virtual void StopAllHighlighting() OVERRIDE; | 67 virtual void StopAllHighlighting() OVERRIDE; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 269 |
| 269 // Used for stage 1 of new tab animation. | 270 // Used for stage 1 of new tab animation. |
| 270 base::OneShotTimer<TabStrip> new_tab_timer_; | 271 base::OneShotTimer<TabStrip> new_tab_timer_; |
| 271 | 272 |
| 272 scoped_ptr<views::MouseWatcher> mouse_watcher_; | 273 scoped_ptr<views::MouseWatcher> mouse_watcher_; |
| 273 | 274 |
| 274 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 275 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 278 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |