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

Side by Side Diff: chrome/browser/ui/browser_tab_strip_model_delegate.h

Issue 11392004: Remove TabContents from AddBlankTabAt, kill AddBlankTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
(...skipping 14 matching lines...) Expand all
25 25
26 namespace chrome { 26 namespace chrome {
27 27
28 class BrowserTabStripModelDelegate : public TabStripModelDelegate { 28 class BrowserTabStripModelDelegate : public TabStripModelDelegate {
29 public: 29 public:
30 explicit BrowserTabStripModelDelegate(Browser* browser); 30 explicit BrowserTabStripModelDelegate(Browser* browser);
31 virtual ~BrowserTabStripModelDelegate(); 31 virtual ~BrowserTabStripModelDelegate();
32 32
33 private: 33 private:
34 // Overridden from TabStripModelDelegate: 34 // Overridden from TabStripModelDelegate:
35 virtual TabContents* AddBlankTab(bool foreground) OVERRIDE; 35 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE;
36 virtual TabContents* AddBlankTabAt(int index, bool foreground) OVERRIDE;
37 virtual Browser* CreateNewStripWithContents( 36 virtual Browser* CreateNewStripWithContents(
38 const std::vector<NewStripContents>& contentses, 37 const std::vector<NewStripContents>& contentses,
39 const gfx::Rect& window_bounds, 38 const gfx::Rect& window_bounds,
40 const DockInfo& dock_info, 39 const DockInfo& dock_info,
41 bool maximize) OVERRIDE; 40 bool maximize) OVERRIDE;
42 virtual int GetDragActions() const OVERRIDE; 41 virtual int GetDragActions() const OVERRIDE;
43 virtual TabContents* CreateTabContentsForURL( 42 virtual TabContents* CreateTabContentsForURL(
44 const GURL& url, 43 const GURL& url,
45 const content::Referrer& referrer, 44 const content::Referrer& referrer,
46 Profile* profile, 45 Profile* profile,
(...skipping 16 matching lines...) Expand all
63 62
64 // The following factory is used to close the frame at a later time. 63 // The following factory is used to close the frame at a later time.
65 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_; 64 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate); 66 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate);
68 }; 67 };
69 68
70 } // namespace chrome 69 } // namespace chrome
71 70
72 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 71 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/browser_tab_strip_model_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698