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

Side by Side Diff: chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.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, 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 14 matching lines...) Expand all
25 - (id)initWithCallback:(const base::Closure&)stop_callback 25 - (id)initWithCallback:(const base::Closure&)stop_callback
26 text:(const base::string16&)text; 26 text:(const base::string16&)text;
27 - (void)stopSharing:(id)sender; 27 - (void)stopSharing:(id)sender;
28 - (void)minimize:(id)sender; 28 - (void)minimize:(id)sender;
29 29
30 @end 30 @end
31 31
32 class ScreenCaptureNotificationUICocoa : public ScreenCaptureNotificationUI { 32 class ScreenCaptureNotificationUICocoa : public ScreenCaptureNotificationUI {
33 public: 33 public:
34 explicit ScreenCaptureNotificationUICocoa(const base::string16& text); 34 explicit ScreenCaptureNotificationUICocoa(const base::string16& text);
35 virtual ~ScreenCaptureNotificationUICocoa(); 35 ~ScreenCaptureNotificationUICocoa() override;
36 36
37 // ScreenCaptureNotificationUI interface. 37 // ScreenCaptureNotificationUI interface.
38 virtual gfx::NativeViewId OnStarted(const base::Closure& stop_callback) 38 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override;
39 override;
40 39
41 private: 40 private:
42 friend class ScreenCaptureNotificationUICocoaTest; 41 friend class ScreenCaptureNotificationUICocoaTest;
43 42
44 const base::string16 text_; 43 const base::string16 text_;
45 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; 44 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); 46 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa);
48 }; 47 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698