[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / constrained_window_views.h
blobaae0ae1385e4c274e3e2fd62c843dda7d9f7a1e1
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_
8 #include "ui/gfx/native_widget_types.h"
10 namespace views {
11 class DialogDelegate;
12 class Widget;
15 namespace web_modal {
16 class ModalDialogHost;
17 class WebContentsModalDialogHost;
20 // Update the position of dialog |widget| against |dialog_host|. This is used to
21 // reposition widgets e.g. when the host dimensions change.
22 void UpdateWebContentsModalDialogPosition(
23 views::Widget* widget,
24 web_modal::WebContentsModalDialogHost* dialog_host);
26 void UpdateBrowserModalDialogPosition(
27 views::Widget* widget,
28 web_modal::ModalDialogHost* dialog_host);
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.
32 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog,
33 gfx::NativeWindow parent);
35 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_