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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: Remove GetBackgroundOpaque and base impls of accessors. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void UpdateCursor(const WebCursor& cursor) override; 105 void UpdateCursor(const WebCursor& cursor) override;
106 void SetIsLoading(bool is_loading) override; 106 void SetIsLoading(bool is_loading) override;
107 void FocusedNodeChanged(bool is_editable_node, 107 void FocusedNodeChanged(bool is_editable_node,
108 const gfx::Rect& node_bounds_in_screen) override; 108 const gfx::Rect& node_bounds_in_screen) override;
109 void RenderProcessGone(base::TerminationStatus status, 109 void RenderProcessGone(base::TerminationStatus status,
110 int error_code) override; 110 int error_code) override;
111 void Destroy() override; 111 void Destroy() override;
112 void SetTooltipText(const base::string16& tooltip_text) override; 112 void SetTooltipText(const base::string16& tooltip_text) override;
113 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 113 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
114 void SetBackgroundColor(SkColor color) override; 114 void SetBackgroundColor(SkColor color) override;
115 SkColor background_color() const override;
115 void CopyFromCompositingSurface( 116 void CopyFromCompositingSurface(
116 const gfx::Rect& src_subrect, 117 const gfx::Rect& src_subrect,
117 const gfx::Size& dst_size, 118 const gfx::Size& dst_size,
118 const ReadbackRequestCallback& callback, 119 const ReadbackRequestCallback& callback,
119 const SkColorType preferred_color_type) override; 120 const SkColorType preferred_color_type) override;
120 void CopyFromCompositingSurfaceToVideoFrame( 121 void CopyFromCompositingSurfaceToVideoFrame(
121 const gfx::Rect& src_subrect, 122 const gfx::Rect& src_subrect,
122 const scoped_refptr<media::VideoFrame>& target, 123 const scoped_refptr<media::VideoFrame>& target,
123 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 124 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
124 bool CanCopyToVideoFrame() const override; 125 bool CanCopyToVideoFrame() const override;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 325
325 // Used to customize behavior for virtual reality mode, such as the 326 // Used to customize behavior for virtual reality mode, such as the
326 // appearance of overscroll glow and the keyboard. 327 // appearance of overscroll glow and the keyboard.
327 bool is_in_vr_; 328 bool is_in_vr_;
328 329
329 // ContentViewCoreImpl is our interface to the view system. 330 // ContentViewCoreImpl is our interface to the view system.
330 ContentViewCoreImpl* content_view_core_; 331 ContentViewCoreImpl* content_view_core_;
331 332
332 ImeAdapterAndroid ime_adapter_android_; 333 ImeAdapterAndroid ime_adapter_android_;
333 334
335 // The background color of the widget.
336 SkColor background_color_;
337
334 // Body background color of the underlying document. 338 // Body background color of the underlying document.
335 SkColor cached_background_color_; 339 SkColor cached_background_color_;
336 340
337 mutable ui::ViewAndroid view_; 341 mutable ui::ViewAndroid view_;
338 342
339 // Manages the Compositor Frames received from the renderer. 343 // Manages the Compositor Frames received from the renderer.
340 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; 344 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_;
341 345
342 cc::ReturnedResourceArray surface_returned_resources_; 346 cc::ReturnedResourceArray surface_returned_resources_;
343 347
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 float prev_bottom_shown_pix_; 386 float prev_bottom_shown_pix_;
383 387
384 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 388 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
385 389
386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 390 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
387 }; 391 };
388 392
389 } // namespace content 393 } // namespace content
390 394
391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 395 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698