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

Side by Side Diff: components/web_modal/test_web_contents_modal_dialog_host.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_HOST_H_ 5 #ifndef COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
6 #define COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ 6 #define COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
7 7
8 #include "components/web_modal/web_contents_modal_dialog_host.h" 8 #include "components/web_modal/web_contents_modal_dialog_host.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 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 14
15 namespace web_modal { 15 namespace web_modal {
16 16
17 class TestWebContentsModalDialogHost : public WebContentsModalDialogHost { 17 class TestWebContentsModalDialogHost : public WebContentsModalDialogHost {
18 public: 18 public:
19 explicit TestWebContentsModalDialogHost(gfx::NativeView host_view); 19 explicit TestWebContentsModalDialogHost(gfx::NativeView host_view);
20 virtual ~TestWebContentsModalDialogHost(); 20 virtual ~TestWebContentsModalDialogHost();
21 21
22 // WebContentsModalDialogHost: 22 // WebContentsModalDialogHost:
23 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; 23 virtual gfx::Size GetMaximumDialogSize() override;
24 virtual gfx::NativeView GetHostView() const OVERRIDE; 24 virtual gfx::NativeView GetHostView() const override;
25 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 25 virtual gfx::Point GetDialogPosition(const gfx::Size& size) override;
26 virtual void AddObserver(ModalDialogHostObserver* observer) OVERRIDE; 26 virtual void AddObserver(ModalDialogHostObserver* observer) override;
27 virtual void RemoveObserver(ModalDialogHostObserver* observer) OVERRIDE; 27 virtual void RemoveObserver(ModalDialogHostObserver* observer) override;
28 28
29 void set_max_dialog_size(const gfx::Size& max_dialog_size) { 29 void set_max_dialog_size(const gfx::Size& max_dialog_size) {
30 max_dialog_size_ = max_dialog_size; 30 max_dialog_size_ = max_dialog_size;
31 } 31 }
32 32
33 private: 33 private:
34 gfx::NativeView host_view_; 34 gfx::NativeView host_view_;
35 gfx::Size max_dialog_size_; 35 gfx::Size max_dialog_size_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(TestWebContentsModalDialogHost); 37 DISALLOW_COPY_AND_ASSIGN(TestWebContentsModalDialogHost);
38 }; 38 };
39 39
40 } // namespace web_modal 40 } // namespace web_modal
41 41
42 #endif // COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_HOST_H_ 42 #endif // COMPONENTS_WEB_MODAL_TEST_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
OLDNEW
« no previous file with comments | « components/web_modal/popup_manager.h ('k') | components/web_modal/test_web_contents_modal_dialog_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698