| Index: components/constrained_window/constrained_window_views.h | 
| diff --git a/chrome/browser/ui/views/constrained_window_views.h b/components/constrained_window/constrained_window_views.h | 
| similarity index 76% | 
| rename from chrome/browser/ui/views/constrained_window_views.h | 
| rename to components/constrained_window/constrained_window_views.h | 
| index e83429af5bfbe886310ed7cc2a0a42f0e20714a0..c638f7e9d45d74838a7a379883262f277dbfe212 100644 | 
| --- a/chrome/browser/ui/views/constrained_window_views.h | 
| +++ b/components/constrained_window/constrained_window_views.h | 
| @@ -2,9 +2,10 @@ | 
| // 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_ | 
| +#ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 
| +#define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 
|  | 
| +#include "base/memory/scoped_ptr.h" | 
| #include "ui/gfx/native_widget_types.h" | 
|  | 
| namespace content { | 
| @@ -22,13 +23,19 @@ class ModalDialogHost; | 
| class WebContentsModalDialogHost; | 
| } | 
|  | 
| +class ConstrainedWindowViewsClient; | 
| + | 
| +// Sets the ConstrainedWindowClient impl. | 
| +void SetConstrainedWindowViewsClient( | 
| +    scoped_ptr<ConstrainedWindowViewsClient> client); | 
| + | 
| // 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( | 
| +void UpdateWidgetModalDialogPosition( | 
| views::Widget* widget, | 
| web_modal::ModalDialogHost* dialog_host); | 
|  | 
| @@ -46,4 +53,4 @@ views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog, | 
| views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, | 
| gfx::NativeWindow parent); | 
|  | 
| -#endif  // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 
| +#endif  // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 
|  |