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

Side by Side Diff: components/web_modal/test_web_contents_modal_dialog_manager_delegate.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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 #ifndef COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
6 #define COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_H_
7 7
8 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" 8 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 12
13 namespace web_modal { 13 namespace web_modal {
14 14
15 class TestWebContentsModalDialogManagerDelegate 15 class TestWebContentsModalDialogManagerDelegate
16 : public WebContentsModalDialogManagerDelegate { 16 : public WebContentsModalDialogManagerDelegate {
17 public: 17 public:
18 TestWebContentsModalDialogManagerDelegate(); 18 TestWebContentsModalDialogManagerDelegate();
19 19
20 // WebContentsModalDialogManagerDelegate overrides: 20 // WebContentsModalDialogManagerDelegate overrides:
21 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 21 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
22 bool blocked) OVERRIDE; 22 bool blocked) override;
23 23
24 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost() OVERRIDE; 24 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost() override;
25 25
26 virtual bool IsWebContentsVisible( 26 virtual bool IsWebContentsVisible(
27 content::WebContents* web_contents) OVERRIDE; 27 content::WebContents* web_contents) override;
28 28
29 void set_web_contents_visible(bool visible) { 29 void set_web_contents_visible(bool visible) {
30 web_contents_visible_ = visible; 30 web_contents_visible_ = visible;
31 } 31 }
32 32
33 void set_web_contents_modal_dialog_host(WebContentsModalDialogHost* host) { 33 void set_web_contents_modal_dialog_host(WebContentsModalDialogHost* host) {
34 web_contents_modal_dialog_host_ = host; 34 web_contents_modal_dialog_host_ = host;
35 } 35 }
36 36
37 bool web_contents_blocked() const { return web_contents_blocked_; } 37 bool web_contents_blocked() const { return web_contents_blocked_; }
38 38
39 private: 39 private:
40 bool web_contents_visible_; 40 bool web_contents_visible_;
41 bool web_contents_blocked_; 41 bool web_contents_blocked_;
42 WebContentsModalDialogHost* web_contents_modal_dialog_host_; // Not owned. 42 WebContentsModalDialogHost* web_contents_modal_dialog_host_; // Not owned.
43 43
44 DISALLOW_COPY_AND_ASSIGN(TestWebContentsModalDialogManagerDelegate); 44 DISALLOW_COPY_AND_ASSIGN(TestWebContentsModalDialogManagerDelegate);
45 }; 45 };
46 46
47 } // namespace web_modal 47 } // namespace web_modal
48 48
49 #endif // COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_ H_ 49 #endif // COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_MANAGER_DELEGATE_ H_
OLDNEW
« no previous file with comments | « components/web_modal/test_web_contents_modal_dialog_host.h ('k') | components/web_modal/web_contents_modal_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698