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

Side by Side Diff: chrome/browser/ui/tabs/test_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_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.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 // Mock TabStripModelDelegate. 12 // Mock TabStripModelDelegate.
13 class TestTabStripModelDelegate : public TabStripModelDelegate { 13 class TestTabStripModelDelegate : public TabStripModelDelegate {
14 public: 14 public:
15 TestTabStripModelDelegate(); 15 TestTabStripModelDelegate();
16 virtual ~TestTabStripModelDelegate(); 16 virtual ~TestTabStripModelDelegate();
17 17
18 // Overridden from TabStripModelDelegate: 18 // Overridden from TabStripModelDelegate:
19 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE; 19 virtual void AddBlankTabAt(int index, bool foreground) OVERRIDE;
20 virtual void AddURLTabAt(const GURL& url, int index, bool foregroud) OVERRIDE;
sky 2013/11/15 20:57:09 Can you combine AddBlankTabAt and AddURLTabAt? May
sadrul 2013/11/15 21:46:55 Done. I combined these two only in TabStripModelDe
20 virtual Browser* CreateNewStripWithContents( 21 virtual Browser* CreateNewStripWithContents(
21 const std::vector<NewStripContents>& contentses, 22 const std::vector<NewStripContents>& contentses,
22 const gfx::Rect& window_bounds, 23 const gfx::Rect& window_bounds,
23 const DockInfo& dock_info, 24 const DockInfo& dock_info,
24 bool maximize) OVERRIDE; 25 bool maximize) OVERRIDE;
25 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE; 26 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE;
26 virtual int GetDragActions() const OVERRIDE; 27 virtual int GetDragActions() const OVERRIDE;
27 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; 28 virtual bool CanDuplicateContentsAt(int index) OVERRIDE;
28 virtual void DuplicateContentsAt(int index) OVERRIDE; 29 virtual void DuplicateContentsAt(int index) OVERRIDE;
29 virtual void CloseFrameAfterDragSession() OVERRIDE; 30 virtual void CloseFrameAfterDragSession() OVERRIDE;
30 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE; 31 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE;
31 virtual bool RunUnloadListenerBeforeClosing( 32 virtual bool RunUnloadListenerBeforeClosing(
32 content::WebContents* contents) OVERRIDE; 33 content::WebContents* contents) OVERRIDE;
33 virtual RestoreTabType GetRestoreTabType() OVERRIDE; 34 virtual RestoreTabType GetRestoreTabType() OVERRIDE;
34 virtual void RestoreTab() OVERRIDE; 35 virtual void RestoreTab() OVERRIDE;
35 virtual bool CanBookmarkAllTabs() const OVERRIDE; 36 virtual bool CanBookmarkAllTabs() const OVERRIDE;
36 virtual void BookmarkAllTabs() OVERRIDE; 37 virtual void BookmarkAllTabs() OVERRIDE;
37 38
38 private: 39 private:
39 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate); 40 DISALLOW_COPY_AND_ASSIGN(TestTabStripModelDelegate);
40 }; 41 };
41 42
42 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_ 43 #endif // CHROME_BROWSER_UI_TABS_TEST_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_delegate.h ('k') | chrome/browser/ui/tabs/test_tab_strip_model_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698