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.
4
5#ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
6#define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
7
8#include "components/web_modal/modal_dialog_host.h"
9
10namespace gfx {
11class Size;
12}
13
14namespace web_modal {
15
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.
20class WebContentsModalDialogHost : public ModalDialogHost {
21 public:
22  virtual ~WebContentsModalDialogHost();
23
24  // Returns the maximum dimensions a dialog can have.
25  virtual gfx::Size GetMaximumDialogSize() = 0;
26};
27
28}  // namespace web_modal
29
30#endif  // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_HOST_H_
31