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

Unified Diff: ui/views/controls/webview/web_contents_set_background_color.h

Issue 2910173003: Revert of Making answer card to behave like other results. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ui/views/controls/webview/BUILD.gn ('k') | ui/views/controls/webview/web_contents_set_background_color.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/web_contents_set_background_color.h
diff --git a/ui/views/controls/webview/web_contents_set_background_color.h b/ui/views/controls/webview/web_contents_set_background_color.h
deleted file mode 100644
index e10a3a3bf0669870433d28e466f2910345f51a46..0000000000000000000000000000000000000000
--- a/ui/views/controls/webview/web_contents_set_background_color.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 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 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 views {
-
-// Ensures that the background color of a given WebContents instance is always
-// set to a given color value.
-class WebContentsSetBackgroundColor
- : public content::WebContentsObserver,
- public content::WebContentsUserData<WebContentsSetBackgroundColor> {
- public:
- WEBVIEW_EXPORT static void CreateForWebContentsWithColor(
- content::WebContents* web_contents,
- SkColor color);
-
- ~WebContentsSetBackgroundColor() override;
-
- private:
- WebContentsSetBackgroundColor(content::WebContents* web_contents,
- SkColor color);
-
- // content::WebContentsObserver:
- void RenderViewReady() override;
- void RenderViewCreated(content::RenderViewHost* render_view_host) override;
- void RenderViewHostChanged(content::RenderViewHost* old_host,
- content::RenderViewHost* new_host) override;
-
- SkColor color_;
-
- DISALLOW_COPY_AND_ASSIGN(WebContentsSetBackgroundColor);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_
« no previous file with comments | « ui/views/controls/webview/BUILD.gn ('k') | ui/views/controls/webview/web_contents_set_background_color.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698