| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |