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 #include "components/web_modal/test_web_contents_modal_dialog_host.h" | 5 #include "components/web_modal/test_web_contents_modal_dialog_host.h" |
6 | 6 |
7 #include "ui/gfx/point.h" | 7 #include "ui/gfx/geometry/point.h" |
8 | 8 |
9 namespace web_modal { | 9 namespace web_modal { |
10 | 10 |
11 TestWebContentsModalDialogHost::TestWebContentsModalDialogHost( | 11 TestWebContentsModalDialogHost::TestWebContentsModalDialogHost( |
12 gfx::NativeView host_view) | 12 gfx::NativeView host_view) |
13 : host_view_(host_view) {} | 13 : host_view_(host_view) {} |
14 | 14 |
15 TestWebContentsModalDialogHost::~TestWebContentsModalDialogHost() {} | 15 TestWebContentsModalDialogHost::~TestWebContentsModalDialogHost() {} |
16 | 16 |
17 gfx::Size TestWebContentsModalDialogHost::GetMaximumDialogSize() { | 17 gfx::Size TestWebContentsModalDialogHost::GetMaximumDialogSize() { |
18 return max_dialog_size_; | 18 return max_dialog_size_; |
19 } | 19 } |
20 | 20 |
21 gfx::NativeView TestWebContentsModalDialogHost::GetHostView() const { | 21 gfx::NativeView TestWebContentsModalDialogHost::GetHostView() const { |
22 return host_view_; | 22 return host_view_; |
23 } | 23 } |
24 | 24 |
25 gfx::Point TestWebContentsModalDialogHost::GetDialogPosition( | 25 gfx::Point TestWebContentsModalDialogHost::GetDialogPosition( |
26 const gfx::Size& size) { | 26 const gfx::Size& size) { |
27 return gfx::Point(); | 27 return gfx::Point(); |
28 } | 28 } |
29 | 29 |
30 void TestWebContentsModalDialogHost::AddObserver( | 30 void TestWebContentsModalDialogHost::AddObserver( |
31 ModalDialogHostObserver* observer) {} | 31 ModalDialogHostObserver* observer) {} |
32 | 32 |
33 void TestWebContentsModalDialogHost::RemoveObserver( | 33 void TestWebContentsModalDialogHost::RemoveObserver( |
34 ModalDialogHostObserver* observer) {} | 34 ModalDialogHostObserver* observer) {} |
35 | 35 |
36 } // namespace web_modal | 36 } // namespace web_modal |
OLD | NEW |