OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual int GetActiveIndex() const OVERRIDE; | 52 virtual int GetActiveIndex() const OVERRIDE; |
53 virtual bool IsTabSelected(int model_index) const OVERRIDE; | 53 virtual bool IsTabSelected(int model_index) const OVERRIDE; |
54 virtual bool IsTabPinned(int model_index) const OVERRIDE; | 54 virtual bool IsTabPinned(int model_index) const OVERRIDE; |
55 virtual bool IsNewTabPage(int model_index) const OVERRIDE; | 55 virtual bool IsNewTabPage(int model_index) const OVERRIDE; |
56 virtual void SelectTab(int model_index) OVERRIDE; | 56 virtual void SelectTab(int model_index) OVERRIDE; |
57 virtual void ExtendSelectionTo(int model_index) OVERRIDE; | 57 virtual void ExtendSelectionTo(int model_index) OVERRIDE; |
58 virtual void ToggleSelected(int model_index) OVERRIDE; | 58 virtual void ToggleSelected(int model_index) OVERRIDE; |
59 virtual void AddSelectionFromAnchorTo(int model_index) OVERRIDE; | 59 virtual void AddSelectionFromAnchorTo(int model_index) OVERRIDE; |
60 virtual void CloseTab(int model_index, CloseTabSource source) OVERRIDE; | 60 virtual void CloseTab(int model_index, CloseTabSource source) OVERRIDE; |
61 virtual void ShowContextMenuForTab(Tab* tab, | 61 virtual void ShowContextMenuForTab(Tab* tab, |
62 const gfx::Point& p) OVERRIDE; | 62 const gfx::Point& p, |
| 63 ui::MenuSourceType source_type) OVERRIDE; |
63 virtual void UpdateLoadingAnimations() OVERRIDE; | 64 virtual void UpdateLoadingAnimations() OVERRIDE; |
64 virtual int HasAvailableDragActions() const OVERRIDE; | 65 virtual int HasAvailableDragActions() const OVERRIDE; |
65 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; | 66 virtual void OnDropIndexUpdate(int index, bool drop_before) OVERRIDE; |
66 virtual void PerformDrop(bool drop_before, | 67 virtual void PerformDrop(bool drop_before, |
67 int index, | 68 int index, |
68 const GURL& url) OVERRIDE; | 69 const GURL& url) OVERRIDE; |
69 virtual bool IsCompatibleWith(TabStrip* other) const OVERRIDE; | 70 virtual bool IsCompatibleWith(TabStrip* other) const OVERRIDE; |
70 virtual void CreateNewTab() OVERRIDE; | 71 virtual void CreateNewTab() OVERRIDE; |
71 virtual bool IsIncognito() OVERRIDE; | 72 virtual bool IsIncognito() OVERRIDE; |
72 virtual void LayoutTypeMaybeChanged() OVERRIDE; | 73 virtual void LayoutTypeMaybeChanged() OVERRIDE; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // top-of-window views to be revealed when the user is dragging |tabstrip|'s | 155 // top-of-window views to be revealed when the user is dragging |tabstrip|'s |
155 // tabs. | 156 // tabs. |
156 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; | 157 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; |
157 | 158 |
158 PrefChangeRegistrar local_pref_registrar_; | 159 PrefChangeRegistrar local_pref_registrar_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); | 161 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); |
161 }; | 162 }; |
162 | 163 |
163 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ | 164 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |