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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_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 "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "chrome/browser/ui/sad_tab.h" 11 #include "chrome/browser/ui/sad_tab.h"
12 12
13 #import <Cocoa/Cocoa.h> 13 #import <Cocoa/Cocoa.h>
14 14
15 @class SadTabController; 15 @class SadTabController;
16 16
17 namespace chrome { 17 namespace chrome {
18 18
19 class SadTabCocoa : public SadTab { 19 class SadTabCocoa : public SadTab {
20 public: 20 public:
21 explicit SadTabCocoa(content::WebContents* web_contents); 21 explicit SadTabCocoa(content::WebContents* web_contents);
22 22
23 virtual ~SadTabCocoa(); 23 ~SadTabCocoa() override;
24 24
25 private: 25 private:
26 // Overridden from SadTab: 26 // Overridden from SadTab:
27 virtual void Show() override; 27 void Show() override;
28 virtual void Close() override; 28 void Close() override;
29 29
30 base::scoped_nsobject<SadTabController> sad_tab_controller_; 30 base::scoped_nsobject<SadTabController> sad_tab_controller_;
31 31
32 content::WebContents* web_contents_; 32 content::WebContents* web_contents_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(SadTabCocoa); 34 DISALLOW_COPY_AND_ASSIGN(SadTabCocoa);
35 }; 35 };
36 36
37 } // namespace chrome 37 } // namespace chrome
38 38
(...skipping 10 matching lines...) Expand all
49 // Cocoa action processing. 49 // Cocoa action processing.
50 - (IBAction)openLearnMoreAboutCrashLink:(id)sender; 50 - (IBAction)openLearnMoreAboutCrashLink:(id)sender;
51 51
52 // Returns a weak reference to the WebContents whose WebContentsView created 52 // Returns a weak reference to the WebContents whose WebContentsView created
53 // this SadTabController. 53 // this SadTabController.
54 - (content::WebContents*)webContents; 54 - (content::WebContents*)webContents;
55 55
56 @end 56 @end
57 57
58 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_ 58 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_SAD_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698