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

Side by Side Diff: android_webview/renderer/aw_render_frame_ext.h

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 10 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 | android_webview/renderer/aw_render_frame_ext.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 ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 #include "ui/gfx/geometry/point_f.h" 10 #include "ui/gfx/geometry/point_f.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 #include "ui/gfx/geometry/size_f.h" 12 #include "ui/gfx/geometry/size_f.h"
13 13
14 namespace blink { 14 namespace blink {
15 enum WebMeaningfulLayout; 15 enum WebMeaningfulLayout;
16 class WebFrameWidget;
16 class WebView; 17 class WebView;
17 } 18 }
18 19
19 namespace android_webview { 20 namespace android_webview {
20 21
21 // Render process side of AwRenderViewHostExt, this provides cross-process 22 // Render process side of AwRenderViewHostExt, this provides cross-process
22 // implementation of miscellaneous WebView functions that we need to poke 23 // implementation of miscellaneous WebView functions that we need to poke
23 // WebKit directly to implement (and that aren't needed in the chrome app). 24 // WebKit directly to implement (and that aren't needed in the chrome app).
24 class AwRenderFrameExt : public content::RenderFrameObserver { 25 class AwRenderFrameExt : public content::RenderFrameObserver {
25 public: 26 public:
(...skipping 17 matching lines...) Expand all
43 44
44 void OnResetScrollAndScaleState(); 45 void OnResetScrollAndScaleState();
45 46
46 void OnSetInitialPageScale(double page_scale_factor); 47 void OnSetInitialPageScale(double page_scale_factor);
47 48
48 void OnSetBackgroundColor(SkColor c); 49 void OnSetBackgroundColor(SkColor c);
49 50
50 void OnSmoothScroll(int target_x, int target_y, int duration_ms); 51 void OnSmoothScroll(int target_x, int target_y, int duration_ms);
51 52
52 blink::WebView* GetWebView(); 53 blink::WebView* GetWebView();
54 blink::WebFrameWidget* GetWebFrameWidget();
53 55
54 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); 56 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt);
55 }; 57 };
56 58
57 } 59 }
58 60
59 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ 61 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_
60 62
61 63
OLDNEW
« no previous file with comments | « no previous file | android_webview/renderer/aw_render_frame_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698