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

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: 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void UpdateCursor(const WebCursor& cursor) override; 111 void UpdateCursor(const WebCursor& cursor) override;
112 void SetIsLoading(bool is_loading) override; 112 void SetIsLoading(bool is_loading) override;
113 void FocusedNodeChanged(bool is_editable_node, 113 void FocusedNodeChanged(bool is_editable_node,
114 const gfx::Rect& node_bounds_in_screen) override; 114 const gfx::Rect& node_bounds_in_screen) override;
115 void RenderProcessGone(base::TerminationStatus status, 115 void RenderProcessGone(base::TerminationStatus status,
116 int error_code) override; 116 int error_code) override;
117 void Destroy() override; 117 void Destroy() override;
118 void SetTooltipText(const base::string16& tooltip_text) override; 118 void SetTooltipText(const base::string16& tooltip_text) override;
119 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 119 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
120 void SetBackgroundColor(SkColor color) override; 120 void SetBackgroundColor(SkColor color) override;
121 SkColor background_color() const override;
121 gfx::Rect GetBoundsInRootWindow() override; 122 gfx::Rect GetBoundsInRootWindow() override;
122 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 123 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
123 InputEventAckState ack_result) override; 124 InputEventAckState ack_result) override;
124 InputEventAckState FilterInputEvent( 125 InputEventAckState FilterInputEvent(
125 const blink::WebInputEvent& input_event) override; 126 const blink::WebInputEvent& input_event) override;
126 void OnSetNeedsFlushInput() override; 127 void OnSetNeedsFlushInput() override;
127 void GestureEventAck(const blink::WebGestureEvent& event, 128 void GestureEventAck(const blink::WebGestureEvent& event,
128 InputEventAckState ack_result) override; 129 InputEventAckState ack_result) override;
129 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 130 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
130 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 131 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 346
346 // Used to customize behavior for virtual reality mode, such as the 347 // Used to customize behavior for virtual reality mode, such as the
347 // appearance of overscroll glow and the keyboard. 348 // appearance of overscroll glow and the keyboard.
348 bool is_in_vr_; 349 bool is_in_vr_;
349 350
350 // ContentViewCoreImpl is our interface to the view system. 351 // ContentViewCoreImpl is our interface to the view system.
351 ContentViewCoreImpl* content_view_core_; 352 ContentViewCoreImpl* content_view_core_;
352 353
353 ImeAdapterAndroid* ime_adapter_android_; 354 ImeAdapterAndroid* ime_adapter_android_;
354 355
356 // The background color of the widget.
357 SkColor background_color_;
358
355 // Body background color of the underlying document. 359 // Body background color of the underlying document.
356 SkColor cached_background_color_; 360 SkColor cached_background_color_;
357 361
358 mutable ui::ViewAndroid view_; 362 mutable ui::ViewAndroid view_;
359 363
360 // Manages the Compositor Frames received from the renderer. 364 // Manages the Compositor Frames received from the renderer.
361 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_; 365 std::unique_ptr<ui::DelegatedFrameHostAndroid> delegated_frame_host_;
362 366
363 cc::ReturnedResourceArray surface_returned_resources_; 367 cc::ReturnedResourceArray surface_returned_resources_;
364 368
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 float prev_bottom_shown_pix_; 404 float prev_bottom_shown_pix_;
401 405
402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 406 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
403 407
404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 408 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
405 }; 409 };
406 410
407 } // namespace content 411 } // namespace content
408 412
409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 413 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698