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

Side by Side Diff: chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.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 (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_MODAL_CONFIRM_DIALOG_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 // To display the dialog, allocate this object on the heap. It will open the 25 // To display the dialog, allocate this object on the heap. It will open the
26 // dialog from its constructor and then delete itself when the user dismisses 26 // dialog from its constructor and then delete itself when the user dismisses
27 // the dialog. 27 // the dialog.
28 class TabModalConfirmDialogMac : public TabModalConfirmDialog, 28 class TabModalConfirmDialogMac : public TabModalConfirmDialog,
29 public ConstrainedWindowMacDelegate { 29 public ConstrainedWindowMacDelegate {
30 public: 30 public:
31 TabModalConfirmDialogMac(TabModalConfirmDialogDelegate* delegate, 31 TabModalConfirmDialogMac(TabModalConfirmDialogDelegate* delegate,
32 content::WebContents* web_contents); 32 content::WebContents* web_contents);
33 33
34 private: 34 private:
35 virtual ~TabModalConfirmDialogMac(); 35 ~TabModalConfirmDialogMac() override;
36 36
37 // TabModalConfirmDialog: 37 // TabModalConfirmDialog:
38 virtual void AcceptTabModalDialog() override; 38 void AcceptTabModalDialog() override;
39 virtual void CancelTabModalDialog() override; 39 void CancelTabModalDialog() override;
40 40
41 // TabModalConfirmDialogCloseDelegate: 41 // TabModalConfirmDialogCloseDelegate:
42 virtual void CloseDialog() override; 42 void CloseDialog() override;
43 43
44 // ConstrainedWindowMacDelegate: 44 // ConstrainedWindowMacDelegate:
45 virtual void OnConstrainedWindowClosed( 45 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
46 ConstrainedWindowMac* window) override;
47 46
48 bool closing_; 47 bool closing_;
49 48
50 scoped_ptr<ConstrainedWindowMac> window_; 49 scoped_ptr<ConstrainedWindowMac> window_;
51 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 50 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
52 base::scoped_nsobject<ConstrainedWindowAlert> alert_; 51 base::scoped_nsobject<ConstrainedWindowAlert> alert_;
53 base::scoped_nsobject<TabModalConfirmDialogMacBridge> bridge_; 52 base::scoped_nsobject<TabModalConfirmDialogMacBridge> bridge_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac); 54 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogMac);
56 }; 55 };
57 56
58 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_ 57 #endif // CHROME_BROWSER_UI_COCOA_TAB_MODAL_CONFIRM_DIALOG_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698