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
3 // found in the LICENSE file.
5 #include "components/web_modal/test_web_contents_modal_dialog_host.h"
7 #include "ui/gfx/geometry/point.h"
11 TestWebContentsModalDialogHost::TestWebContentsModalDialogHost(
12 gfx::NativeView host_view
)
13 : host_view_(host_view
) {}
15 TestWebContentsModalDialogHost::~TestWebContentsModalDialogHost() {}
17 gfx::Size
TestWebContentsModalDialogHost::GetMaximumDialogSize() {
18 return max_dialog_size_
;
21 gfx::NativeView
TestWebContentsModalDialogHost::GetHostView() const {
25 gfx::Point
TestWebContentsModalDialogHost::GetDialogPosition(
26 const gfx::Size
& size
) {
30 void TestWebContentsModalDialogHost::AddObserver(
31 ModalDialogHostObserver
* observer
) {}
33 void TestWebContentsModalDialogHost::RemoveObserver(
34 ModalDialogHostObserver
* observer
) {}
36 } // namespace web_modal