| Index: ui/views/controls/webview/web_contents_set_background_color.h
|
| diff --git a/chrome/browser/chromeos/login/ui/web_contents_set_background_color.h b/ui/views/controls/webview/web_contents_set_background_color.h
|
| similarity index 73%
|
| rename from chrome/browser/chromeos/login/ui/web_contents_set_background_color.h
|
| rename to ui/views/controls/webview/web_contents_set_background_color.h
|
| index 024d31036b6344c92f1741150f0fcc3270bd1028..e10a3a3bf0669870433d28e466f2910345f51a46 100644
|
| --- a/chrome/browser/chromeos/login/ui/web_contents_set_background_color.h
|
| +++ b/ui/views/controls/webview/web_contents_set_background_color.h
|
| @@ -2,16 +2,17 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
| -#define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
| +#ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
| +#define UI_VIEWS_CONTROLS_WEBVIEW_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
|
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
| +#include "ui/views/controls/webview/webview_export.h"
|
|
|
| // Defined in SkColor.h (32-bit ARGB color).
|
| using SkColor = unsigned int;
|
|
|
| -namespace chromeos {
|
| +namespace views {
|
|
|
| // Ensures that the background color of a given WebContents instance is always
|
| // set to a given color value.
|
| @@ -19,8 +20,9 @@ class WebContentsSetBackgroundColor
|
| : public content::WebContentsObserver,
|
| public content::WebContentsUserData<WebContentsSetBackgroundColor> {
|
| public:
|
| - static void CreateForWebContentsWithColor(content::WebContents* web_contents,
|
| - SkColor color);
|
| + WEBVIEW_EXPORT static void CreateForWebContentsWithColor(
|
| + content::WebContents* web_contents,
|
| + SkColor color);
|
|
|
| ~WebContentsSetBackgroundColor() override;
|
|
|
| @@ -39,6 +41,6 @@ class WebContentsSetBackgroundColor
|
| DISALLOW_COPY_AND_ASSIGN(WebContentsSetBackgroundColor);
|
| };
|
|
|
| -} // namespace chromeos
|
| +} // namespace views
|
|
|
| -#endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
| +#endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
|
|
|