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

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

Issue 17382005: Unbreak tabs.onRemove extension API in face of fast tab closure Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't modify content Created 7 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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual bool IsIncognito() OVERRIDE; 72 virtual bool IsIncognito() OVERRIDE;
73 virtual void LayoutTypeMaybeChanged() OVERRIDE; 73 virtual void LayoutTypeMaybeChanged() OVERRIDE;
74 virtual void OnStartedDraggingTabs() OVERRIDE; 74 virtual void OnStartedDraggingTabs() OVERRIDE;
75 virtual void OnStoppedDraggingTabs() OVERRIDE; 75 virtual void OnStoppedDraggingTabs() OVERRIDE;
76 76
77 // TabStripModelObserver implementation: 77 // TabStripModelObserver implementation:
78 virtual void TabInsertedAt(content::WebContents* contents, 78 virtual void TabInsertedAt(content::WebContents* contents,
79 int model_index, 79 int model_index,
80 bool is_active) OVERRIDE; 80 bool is_active) OVERRIDE;
81 virtual void TabDetachedAt(content::WebContents* contents, 81 virtual void TabDetachedAt(content::WebContents* contents,
82 int model_index) OVERRIDE; 82 int model_index,
83 bool closing_all) OVERRIDE;
83 virtual void TabSelectionChanged( 84 virtual void TabSelectionChanged(
84 TabStripModel* tab_strip_model, 85 TabStripModel* tab_strip_model,
85 const ui::ListSelectionModel& old_model) OVERRIDE; 86 const ui::ListSelectionModel& old_model) OVERRIDE;
86 virtual void TabMoved(content::WebContents* contents, 87 virtual void TabMoved(content::WebContents* contents,
87 int from_model_index, 88 int from_model_index,
88 int to_model_index) OVERRIDE; 89 int to_model_index) OVERRIDE;
89 virtual void TabChangedAt(content::WebContents* contents, 90 virtual void TabChangedAt(content::WebContents* contents,
90 int model_index, 91 int model_index,
91 TabChangeType change_type) OVERRIDE; 92 TabChangeType change_type) OVERRIDE;
92 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 93 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // top-of-window views to be revealed when the user is dragging |tabstrip|'s 156 // top-of-window views to be revealed when the user is dragging |tabstrip|'s
156 // tabs. 157 // tabs.
157 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; 158 scoped_ptr<ImmersiveRevealedLock> immersive_reveal_lock_;
158 159
159 PrefChangeRegistrar local_pref_registrar_; 160 PrefChangeRegistrar local_pref_registrar_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); 162 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController);
162 }; 163 };
163 164
164 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 165 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698