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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: Remove GetBackgroundOpaque and base impls of accessors. Created 3 years, 10 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: content/browser/frame_host/render_widget_host_view_child_frame.h
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.h b/content/browser/frame_host/render_widget_host_view_child_frame.h
index e4b31b4f2c7037ea86fbb21b31599198f56a9e70..ce73d86bac373a508e08c7b7c98fa29b94bfecf9 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.h
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.h
@@ -87,6 +87,7 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame
gfx::NativeView GetNativeView() const override;
gfx::NativeViewAccessible GetNativeViewAccessible() override;
void SetBackgroundColor(SkColor color) override;
+ SkColor background_color() const override;
gfx::Size GetPhysicalBackingSize() const override;
bool IsMouseLocked() override;
void SetNeedsBeginFrames(bool needs_begin_frames) override;
@@ -266,6 +267,9 @@ class CONTENT_EXPORT RenderWidgetHostViewChildFrame
// The surface client ID of the parent RenderWidgetHostView. 0 if none.
cc::FrameSinkId parent_frame_sink_id_;
+ // The background color of the widget.
+ SkColor background_color_;
+
base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
};

Powered by Google App Engine
This is Rietveld 408576698