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

Side by Side 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: rebase: employ same mechanism in RWHVMac. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const SkColorType color_type) override; 82 const SkColorType color_type) override;
83 void Show() override; 83 void Show() override;
84 void Hide() override; 84 void Hide() override;
85 bool IsShowing() override; 85 bool IsShowing() override;
86 gfx::Rect GetViewBounds() const override; 86 gfx::Rect GetViewBounds() const override;
87 gfx::Size GetVisibleViewportSize() const override; 87 gfx::Size GetVisibleViewportSize() const override;
88 gfx::Vector2dF GetLastScrollOffset() const override; 88 gfx::Vector2dF GetLastScrollOffset() const override;
89 gfx::NativeView GetNativeView() const override; 89 gfx::NativeView GetNativeView() const override;
90 gfx::NativeViewAccessible GetNativeViewAccessible() override; 90 gfx::NativeViewAccessible GetNativeViewAccessible() override;
91 void SetBackgroundColor(SkColor color) override; 91 void SetBackgroundColor(SkColor color) override;
92 SkColor background_color() const override;
92 gfx::Size GetPhysicalBackingSize() const override; 93 gfx::Size GetPhysicalBackingSize() const override;
93 bool IsMouseLocked() override; 94 bool IsMouseLocked() override;
94 void SetNeedsBeginFrames(bool needs_begin_frames) override; 95 void SetNeedsBeginFrames(bool needs_begin_frames) override;
95 96
96 // RenderWidgetHostViewBase implementation. 97 // RenderWidgetHostViewBase implementation.
97 void InitAsPopup(RenderWidgetHostView* parent_host_view, 98 void InitAsPopup(RenderWidgetHostView* parent_host_view,
98 const gfx::Rect& bounds) override; 99 const gfx::Rect& bounds) override;
99 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
100 void UpdateCursor(const WebCursor& cursor) override; 101 void UpdateCursor(const WebCursor& cursor) override;
101 void SetIsLoading(bool is_loading) override; 102 void SetIsLoading(bool is_loading) override;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; 249 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>;
249 // Since frame-drawn callbacks are "fire once", we use std::deque to make 250 // Since frame-drawn callbacks are "fire once", we use std::deque to make
250 // it convenient to swap() when processing the list. 251 // it convenient to swap() when processing the list.
251 FrameSwappedCallbackList frame_swapped_callbacks_; 252 FrameSwappedCallbackList frame_swapped_callbacks_;
252 253
253 // The surface client ID of the parent RenderWidgetHostView. 0 if none. 254 // The surface client ID of the parent RenderWidgetHostView. 0 if none.
254 cc::FrameSinkId parent_frame_sink_id_; 255 cc::FrameSinkId parent_frame_sink_id_;
255 256
256 bool has_frame_ = false; 257 bool has_frame_ = false;
257 258
259 // The background color of the widget.
260 SkColor background_color_;
261
258 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 262 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
259 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 263 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
260 }; 264 };
261 265
262 } // namespace content 266 } // namespace content
263 267
264 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 268 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698