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

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

Issue 74133003: linux-aura: Restore middle-click on new-tab button behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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"
11 11
12 class GURL;
13
12 namespace chrome { 14 namespace chrome {
13 15
14 class BrowserTabStripModelDelegate : public TabStripModelDelegate { 16 class BrowserTabStripModelDelegate : public TabStripModelDelegate {
15 public: 17 public:
16 explicit BrowserTabStripModelDelegate(Browser* browser); 18 explicit BrowserTabStripModelDelegate(Browser* browser);
17 virtual ~BrowserTabStripModelDelegate(); 19 virtual ~BrowserTabStripModelDelegate();
18 20
19 private: 21 private:
20 // Overridden from TabStripModelDelegate: 22 // Overridden from TabStripModelDelegate:
21 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE; 23 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE;
24 virtual void AddURLTabAt(const GURL& u, int index, bool foreground) OVERRIDE;
22 virtual Browser* CreateNewStripWithContents( 25 virtual Browser* CreateNewStripWithContents(
23 const std::vector<NewStripContents>& contentses, 26 const std::vector<NewStripContents>& contentses,
24 const gfx::Rect& window_bounds, 27 const gfx::Rect& window_bounds,
25 const DockInfo& dock_info, 28 const DockInfo& dock_info,
26 bool maximize) OVERRIDE; 29 bool maximize) OVERRIDE;
27 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE; 30 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE;
28 virtual int GetDragActions() const OVERRIDE; 31 virtual int GetDragActions() const OVERRIDE;
29 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; 32 virtual bool CanDuplicateContentsAt(int index) OVERRIDE;
30 virtual void DuplicateContentsAt(int index) OVERRIDE; 33 virtual void DuplicateContentsAt(int index) OVERRIDE;
31 virtual void CloseFrameAfterDragSession() OVERRIDE; 34 virtual void CloseFrameAfterDragSession() OVERRIDE;
(...skipping 11 matching lines...) Expand all
43 46
44 // The following factory is used to close the frame at a later time. 47 // The following factory is used to close the frame at a later time.
45 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_; 48 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_;
46 49
47 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate); 50 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate);
48 }; 51 };
49 52
50 } // namespace chrome 53 } // namespace chrome
51 54
52 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 55 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698