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

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: add back static_casts since compile complains otherwise. Created 3 years, 9 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool IsSurfaceAvailableForCopy() const override; 78 bool IsSurfaceAvailableForCopy() const override;
79 void Show() override; 79 void Show() override;
80 void Hide() override; 80 void Hide() override;
81 bool IsShowing() override; 81 bool IsShowing() override;
82 gfx::Rect GetViewBounds() const override; 82 gfx::Rect GetViewBounds() const override;
83 gfx::Size GetVisibleViewportSize() const override; 83 gfx::Size GetVisibleViewportSize() const override;
84 gfx::Vector2dF GetLastScrollOffset() const override; 84 gfx::Vector2dF GetLastScrollOffset() const override;
85 gfx::NativeView GetNativeView() const override; 85 gfx::NativeView GetNativeView() const override;
86 gfx::NativeViewAccessible GetNativeViewAccessible() override; 86 gfx::NativeViewAccessible GetNativeViewAccessible() override;
87 void SetBackgroundColor(SkColor color) override; 87 void SetBackgroundColor(SkColor color) override;
88 SkColor background_color() const override;
88 gfx::Size GetPhysicalBackingSize() const override; 89 gfx::Size GetPhysicalBackingSize() const override;
89 bool IsMouseLocked() override; 90 bool IsMouseLocked() override;
90 void SetNeedsBeginFrames(bool needs_begin_frames) override; 91 void SetNeedsBeginFrames(bool needs_begin_frames) override;
91 92
92 // RenderWidgetHostViewBase implementation. 93 // RenderWidgetHostViewBase implementation.
93 void InitAsPopup(RenderWidgetHostView* parent_host_view, 94 void InitAsPopup(RenderWidgetHostView* parent_host_view,
94 const gfx::Rect& bounds) override; 95 const gfx::Rect& bounds) override;
95 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 96 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
96 void UpdateCursor(const WebCursor& cursor) override; 97 void UpdateCursor(const WebCursor& cursor) override;
97 void SetIsLoading(bool is_loading) override; 98 void SetIsLoading(bool is_loading) override;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void ResetCompositorFrameSinkSupport(); 250 void ResetCompositorFrameSinkSupport();
250 251
251 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; 252 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>;
252 // Since frame-drawn callbacks are "fire once", we use std::deque to make 253 // Since frame-drawn callbacks are "fire once", we use std::deque to make
253 // it convenient to swap() when processing the list. 254 // it convenient to swap() when processing the list.
254 FrameSwappedCallbackList frame_swapped_callbacks_; 255 FrameSwappedCallbackList frame_swapped_callbacks_;
255 256
256 // The surface client ID of the parent RenderWidgetHostView. 0 if none. 257 // The surface client ID of the parent RenderWidgetHostView. 0 if none.
257 cc::FrameSinkId parent_frame_sink_id_; 258 cc::FrameSinkId parent_frame_sink_id_;
258 259
260 // The background color of the widget.
261 SkColor background_color_;
262
259 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 263 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
260 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 264 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
261 }; 265 };
262 266
263 } // namespace content 267 } // namespace content
264 268
265 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 269 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698