| OLD | NEW |
| 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" | |
| 11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.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 ~TestWebContentsModalDialogHost() override; | 20 ~TestWebContentsModalDialogHost() override; |
| 21 | 21 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |