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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 368273008: [WebView] Fix issue with transparent background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include "android_webview/browser/global_tile_manager.h" 8 #include "android_webview/browser/global_tile_manager.h"
9 #include "android_webview/browser/global_tile_manager_client.h" 9 #include "android_webview/browser/global_tile_manager_client.h"
10 #include "android_webview/browser/shared_renderer_state.h" 10 #include "android_webview/browser/shared_renderer_state.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void SetIsPaused(bool paused); 92 void SetIsPaused(bool paused);
93 void SetViewVisibility(bool visible); 93 void SetViewVisibility(bool visible);
94 void SetWindowVisibility(bool visible); 94 void SetWindowVisibility(bool visible);
95 void OnSizeChanged(int width, int height); 95 void OnSizeChanged(int width, int height);
96 void OnAttachedToWindow(int width, int height); 96 void OnAttachedToWindow(int width, int height);
97 void OnDetachedFromWindow(); 97 void OnDetachedFromWindow();
98 98
99 // Sets the scale for logical<->physical pixel conversions. 99 // Sets the scale for logical<->physical pixel conversions.
100 void SetDipScale(float dip_scale); 100 void SetDipScale(float dip_scale);
101 101
102 // Sets the background of the layer tree to transparent.
103 void SetHasTransparentBackground(bool transparent);
104
105 // Set the root layer scroll offset to |new_value|. 102 // Set the root layer scroll offset to |new_value|.
106 void ScrollTo(gfx::Vector2d new_value); 103 void ScrollTo(gfx::Vector2d new_value);
107 104
108 // Android views hierarchy gluing. 105 // Android views hierarchy gluing.
109 bool IsVisible() const; 106 bool IsVisible() const;
110 gfx::Rect GetScreenRect() const; 107 gfx::Rect GetScreenRect() const;
111 bool attached_to_window() const { return attached_to_window_; } 108 bool attached_to_window() const { return attached_to_window_; }
112 bool hardware_enabled() const { return hardware_enabled_; } 109 bool hardware_enabled() const { return hardware_enabled_; }
113 110
114 // Set the memory policy in shared renderer state and request the tiles from 111 // Set the memory policy in shared renderer state and request the tiles from
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 185 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
189 186
190 content::SynchronousCompositor* compositor_; 187 content::SynchronousCompositor* compositor_;
191 188
192 bool is_paused_; 189 bool is_paused_;
193 bool view_visible_; 190 bool view_visible_;
194 bool window_visible_; // Only applicable if |attached_to_window_| is true. 191 bool window_visible_; // Only applicable if |attached_to_window_| is true.
195 bool attached_to_window_; 192 bool attached_to_window_;
196 bool hardware_enabled_; 193 bool hardware_enabled_;
197 float dip_scale_; 194 float dip_scale_;
198 bool has_transparent_background_;
199 float page_scale_factor_; 195 float page_scale_factor_;
200 bool on_new_picture_enable_; 196 bool on_new_picture_enable_;
201 bool clear_view_; 197 bool clear_view_;
202 198
203 gfx::Vector2d last_on_draw_scroll_offset_; 199 gfx::Vector2d last_on_draw_scroll_offset_;
204 gfx::Rect last_on_draw_global_visible_rect_; 200 gfx::Rect last_on_draw_global_visible_rect_;
205 201
206 // When true, we should continuously invalidate and keep drawing, for example 202 // When true, we should continuously invalidate and keep drawing, for example
207 // to drive animation. This value is set by the compositor and should always 203 // to drive animation. This value is set by the compositor and should always
208 // reflect the expectation of the compositor and not be reused for other 204 // reflect the expectation of the compositor and not be reused for other
(...skipping 27 matching lines...) Expand all
236 // policy on the shared_renderer_state_ atomically. 232 // policy on the shared_renderer_state_ atomically.
237 size_t num_tiles_; 233 size_t num_tiles_;
238 size_t num_bytes_; 234 size_t num_bytes_;
239 235
240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 236 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
241 }; 237 };
242 238
243 } // namespace android_webview 239 } // namespace android_webview
244 240
245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 241 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698