constrained_window_views.h revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
1// Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ 6#define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ 7 8#include "ui/gfx/native_widget_types.h" 9 10namespace web_modal { 11class WebContentsModalDialogHost; 12} 13 14namespace content { 15class WebContents; 16class BrowserContext; 17} 18namespace views { 19class DialogDelegate; 20class NonClientFrameView; 21class WidgetDelegate; 22class Widget; 23} 24 25views::Widget* CreateWebContentsModalDialogViews( 26 views::WidgetDelegate* widget_delegate, 27 gfx::NativeView parent, 28 web_modal::WebContentsModalDialogHost* dialog_host); 29 30// Create a widget for |dialog| that is modal to the browser window |parent|. 31// This places the dialog appropriately if |parent| is a valid browser window. 32views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, 33 gfx::NativeWindow parent); 34 35views::NonClientFrameView* CreateConstrainedStyleNonClientFrameView( 36 views::Widget* widget, 37 content::BrowserContext* browser_context); 38 39#endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ 40