1 // Copyright (c) 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 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
8 #include "components/web_modal/modal_dialog_host.h"
16 // Unlike browser modal dialogs, web contents modal dialogs should not be able
17 // to draw outside the browser window. WebContentsModalDialogHost adds a
18 // GetMaximumDialogSize method in order for positioning code to be able to take
20 class WebContentsModalDialogHost
: public ModalDialogHost
{
22 ~WebContentsModalDialogHost() override
;
24 // Returns the maximum dimensions a dialog can have.
25 virtual gfx::Size
GetMaximumDialogSize() = 0;
28 } // namespace web_modal
30 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_