Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / web_modal / web_contents_modal_dialog_host.h
blob3ae7c1f58df1fa510fab64539f20dec32f9c6fc4
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"
10 namespace gfx {
11 class Size;
14 namespace web_modal {
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
19 // this into account.
20 class WebContentsModalDialogHost : public ModalDialogHost {
21 public:
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_