// Copyright 2016 The Chromium Authors // 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). SkColor; 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> { … }; } // namespace views #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_CONTENTS_SET_BACKGROUND_COLOR_H_