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

Side by Side Diff: chrome/browser/tabs/tab_strip_model.h

Issue 67070: Merge 13131 - Make the throbber throb sooner after you navigate. This fixes t... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « chrome/browser/tab_contents/web_contents.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TABS_TAB_STRIP_MODEL_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 TabContents* new_contents, 63 TabContents* new_contents,
64 int index, 64 int index,
65 bool user_gesture) { } 65 bool user_gesture) { }
66 // The specified TabContents at |from_index| was moved to |to_index|. 66 // The specified TabContents at |from_index| was moved to |to_index|.
67 virtual void TabMoved(TabContents* contents, 67 virtual void TabMoved(TabContents* contents,
68 int from_index, 68 int from_index,
69 int to_index) { } 69 int to_index) { }
70 // The specified TabContents at |index| changed in some way. |contents| may 70 // The specified TabContents at |index| changed in some way. |contents| may
71 // be an entirely different object and the old value is no longer available 71 // be an entirely different object and the old value is no longer available
72 // by the time this message is delivered. 72 // by the time this message is delivered.
73 virtual void TabChangedAt(TabContents* contents, int index) { } 73 virtual void TabChangedAt(TabContents* contents, int index,
74 bool loading_only) { }
74 // The TabStripModel now no longer has any "significant" (user created or 75 // The TabStripModel now no longer has any "significant" (user created or
75 // user manipulated) tabs. The implementer may use this as a trigger to try 76 // user manipulated) tabs. The implementer may use this as a trigger to try
76 // and close the window containing the TabStripModel, for example... 77 // and close the window containing the TabStripModel, for example...
77 virtual void TabStripEmpty() { } 78 virtual void TabStripEmpty() { }
78 }; 79 };
79 80
80 /////////////////////////////////////////////////////////////////////////////// 81 ///////////////////////////////////////////////////////////////////////////////
81 // 82 //
82 // TabStripModelDelegate 83 // TabStripModelDelegate
83 // 84 //
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 280
280 // Returns the index of the specified TabContents, or -1 if the TabContents 281 // Returns the index of the specified TabContents, or -1 if the TabContents
281 // is not in this TabStripModel. 282 // is not in this TabStripModel.
282 int GetIndexOfTabContents(const TabContents* contents) const; 283 int GetIndexOfTabContents(const TabContents* contents) const;
283 284
284 // Returns the index of the specified NavigationController, or -1 if it is 285 // Returns the index of the specified NavigationController, or -1 if it is
285 // not in this TabStripModel. 286 // not in this TabStripModel.
286 int GetIndexOfController(const NavigationController* controller) const; 287 int GetIndexOfController(const NavigationController* controller) const;
287 288
288 // Notify any observers that the TabContents at the specified index has 289 // Notify any observers that the TabContents at the specified index has
289 // changed in some way. 290 // changed in some way. Loading only specifies whether only the loading state
290 void UpdateTabContentsStateAt(int index); 291 // has changed.
292 void UpdateTabContentsStateAt(int index, bool loading_only);
291 293
292 // Make sure there is an auto-generated New Tab tab in the TabStripModel. 294 // Make sure there is an auto-generated New Tab tab in the TabStripModel.
293 // If |force_create| is true, the New Tab will be created even if the 295 // If |force_create| is true, the New Tab will be created even if the
294 // preference is set to false (used by startup). 296 // preference is set to false (used by startup).
295 void EnsureNewTabVisible(bool force_create); 297 void EnsureNewTabVisible(bool force_create);
296 298
297 // Close all tabs at once. Code can use closing_all() above to defer 299 // Close all tabs at once. Code can use closing_all() above to defer
298 // operations that might otherwise by invoked by the flurry of detach/select 300 // operations that might otherwise by invoked by the flurry of detach/select
299 // notifications this method causes. 301 // notifications this method causes.
300 void CloseAllTabs(); 302 void CloseAllTabs();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 TabStripModelOrderController* order_controller_; 542 TabStripModelOrderController* order_controller_;
541 543
542 // Our observers. 544 // Our observers.
543 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; 545 typedef ObserverList<TabStripModelObserver> TabStripModelObservers;
544 TabStripModelObservers observers_; 546 TabStripModelObservers observers_;
545 547
546 DISALLOW_COPY_AND_ASSIGN(TabStripModel); 548 DISALLOW_COPY_AND_ASSIGN(TabStripModel);
547 }; 549 };
548 550
549 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 551 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698