Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: chrome/browser/ui/views/constrained_window_views.h

Issue 658383003: Componentize Constrained Window Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/constrained_window_views.h
diff --git a/chrome/browser/ui/views/constrained_window_views.h b/chrome/browser/ui/views/constrained_window_views.h
deleted file mode 100644
index e83429af5bfbe886310ed7cc2a0a42f0e20714a0..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/constrained_window_views.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_
-#define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_
-
-#include "ui/gfx/native_widget_types.h"
-
-namespace content {
-class WebContents;
-}
-
-namespace views {
-class DialogDelegate;
-class Widget;
-class WidgetDelegate;
-}
-
-namespace web_modal {
-class ModalDialogHost;
-class WebContentsModalDialogHost;
-}
-
-// Update the position of dialog |widget| against |dialog_host|. This is used to
-// reposition widgets e.g. when the host dimensions change.
-void UpdateWebContentsModalDialogPosition(
- views::Widget* widget,
- web_modal::WebContentsModalDialogHost* dialog_host);
-
-void UpdateBrowserModalDialogPosition(
- views::Widget* widget,
- web_modal::ModalDialogHost* dialog_host);
-
-// Calls CreateWebModalDialogViews, shows the dialog, and returns its widget.
-views::Widget* ShowWebModalDialogViews(
- views::WidgetDelegate* dialog,
- content::WebContents* initiator_web_contents);
-
-// Create a widget for |dialog| that is modal to |web_contents|.
-views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog,
- content::WebContents* web_contents);
-
-// Create a widget for |dialog| that is modal to the browser window |parent|.
-// This places the dialog appropriately if |parent| is a valid browser window.
-views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog,
- gfx::NativeWindow parent);
-
-#endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698