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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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; 12 class GURL;
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 class BrowserTabStripModelDelegate : public TabStripModelDelegate { 16 class BrowserTabStripModelDelegate : public TabStripModelDelegate {
17 public: 17 public:
18 explicit BrowserTabStripModelDelegate(Browser* browser); 18 explicit BrowserTabStripModelDelegate(Browser* browser);
19 virtual ~BrowserTabStripModelDelegate(); 19 virtual ~BrowserTabStripModelDelegate();
20 20
21 private: 21 private:
22 // Overridden from TabStripModelDelegate: 22 // Overridden from TabStripModelDelegate:
23 virtual void AddTabAt(const GURL& url, 23 virtual void AddTabAt(const GURL& url,
24 int index, 24 int index,
25 bool foreground) OVERRIDE; 25 bool foreground) override;
26 virtual Browser* CreateNewStripWithContents( 26 virtual Browser* CreateNewStripWithContents(
27 const std::vector<NewStripContents>& contentses, 27 const std::vector<NewStripContents>& contentses,
28 const gfx::Rect& window_bounds, 28 const gfx::Rect& window_bounds,
29 bool maximize) OVERRIDE; 29 bool maximize) override;
30 virtual void WillAddWebContents(content::WebContents* contents) OVERRIDE; 30 virtual void WillAddWebContents(content::WebContents* contents) override;
31 virtual int GetDragActions() const OVERRIDE; 31 virtual int GetDragActions() const override;
32 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; 32 virtual bool CanDuplicateContentsAt(int index) override;
33 virtual void DuplicateContentsAt(int index) OVERRIDE; 33 virtual void DuplicateContentsAt(int index) override;
34 virtual void CreateHistoricalTab(content::WebContents* contents) OVERRIDE; 34 virtual void CreateHistoricalTab(content::WebContents* contents) override;
35 virtual bool RunUnloadListenerBeforeClosing( 35 virtual bool RunUnloadListenerBeforeClosing(
36 content::WebContents* contents) OVERRIDE; 36 content::WebContents* contents) override;
37 virtual bool ShouldRunUnloadListenerBeforeClosing( 37 virtual bool ShouldRunUnloadListenerBeforeClosing(
38 content::WebContents* contents) OVERRIDE; 38 content::WebContents* contents) override;
39 virtual bool CanBookmarkAllTabs() const OVERRIDE; 39 virtual bool CanBookmarkAllTabs() const override;
40 virtual void BookmarkAllTabs() OVERRIDE; 40 virtual void BookmarkAllTabs() override;
41 virtual RestoreTabType GetRestoreTabType() OVERRIDE; 41 virtual RestoreTabType GetRestoreTabType() override;
42 virtual void RestoreTab() OVERRIDE; 42 virtual void RestoreTab() override;
43 43
44 void CloseFrame(); 44 void CloseFrame();
45 45
46 Browser* browser_; 46 Browser* browser_;
47 47
48 // The following factory is used to close the frame at a later time. 48 // The following factory is used to close the frame at a later time.
49 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_; 49 base::WeakPtrFactory<BrowserTabStripModelDelegate> weak_factory_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate); 51 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripModelDelegate);
52 }; 52 };
53 53
54 } // namespace chrome 54 } // namespace chrome
55 55
56 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_ 56 #endif // CHROME_BROWSER_UI_BROWSER_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_tab_restorer.cc ('k') | chrome/browser/ui/browser_toolbar_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698