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

Side by Side Diff: content/public/renderer/render_view.h

Issue 1203693003: Setting Accurate ScrollResult from Blink for Elastic Scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed piman review comments Created 5 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
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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 struct WebContextMenuData; 26 struct WebContextMenuData;
27 } 27 }
28 28
29 namespace gfx { 29 namespace gfx {
30 class Point; 30 class Point;
31 class Size; 31 class Size;
32 } 32 }
33 33
34 namespace content { 34 namespace content {
35 35
36 class CompositorDependencies;
36 class RenderFrame; 37 class RenderFrame;
37 class RenderViewVisitor; 38 class RenderViewVisitor;
38 struct SSLStatus; 39 struct SSLStatus;
39 struct WebPreferences; 40 struct WebPreferences;
40 41
41 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project. 42 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project.
42 // New code should be added to RenderFrame instead. 43 // New code should be added to RenderFrame instead.
43 // 44 //
44 // For context, please see https://crbug.com/467770 and 45 // For context, please see https://crbug.com/467770 and
45 // http://www.chromium.org/developers/design-documents/site-isolation. 46 // http://www.chromium.org/developers/design-documents/site-isolation.
46 class CONTENT_EXPORT RenderView : public IPC::Sender { 47 class CONTENT_EXPORT RenderView : public IPC::Sender {
47 public: 48 public:
48 // Returns the RenderView containing the given WebView. 49 // Returns the RenderView containing the given WebView.
49 static RenderView* FromWebView(blink::WebView* webview); 50 static RenderView* FromWebView(blink::WebView* webview);
50 51
51 // Returns the RenderView for the given routing ID. 52 // Returns the RenderView for the given routing ID.
52 static RenderView* FromRoutingID(int routing_id); 53 static RenderView* FromRoutingID(int routing_id);
53 54
54 // Returns the number of live RenderView instances in this process. 55 // Returns the number of live RenderView instances in this process.
55 static size_t GetRenderViewCount(); 56 static size_t GetRenderViewCount();
56 57
57 // Visit all RenderViews with a live WebView (i.e., RenderViews that have 58 // Visit all RenderViews with a live WebView (i.e., RenderViews that have
58 // been closed but not yet destroyed are excluded). 59 // been closed but not yet destroyed are excluded).
59 static void ForEach(RenderViewVisitor* visitor); 60 static void ForEach(RenderViewVisitor* visitor);
60 61
61 // Applies WebKit related preferences to this view. 62 // Applies WebKit related preferences to this view.
62 static void ApplyWebPreferences(const WebPreferences& preferences, 63 static void ApplyWebPreferencesInternal(
63 blink::WebView* web_view); 64 const WebPreferences& preferences,
65 blink::WebView* web_view,
66 CompositorDependencies* compositor_deps);
piman 2015/07/01 16:08:05 What I had in mind was to have ApplyWebPreferences
MuVen 2015/07/01 17:01:39 Done.
64 67
65 // Returns the main RenderFrame. 68 // Returns the main RenderFrame.
66 virtual RenderFrame* GetMainRenderFrame() = 0; 69 virtual RenderFrame* GetMainRenderFrame() = 0;
67 70
68 // Get the routing ID of the view. 71 // Get the routing ID of the view.
69 virtual int GetRoutingID() const = 0; 72 virtual int GetRoutingID() const = 0;
70 73
71 // Returns the size of the view. 74 // Returns the size of the view.
72 virtual gfx::Size GetSize() const = 0; 75 virtual gfx::Size GetSize() const = 0;
73 76
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 135
133 private: 136 private:
134 // This interface should only be implemented inside content. 137 // This interface should only be implemented inside content.
135 friend class RenderViewImpl; 138 friend class RenderViewImpl;
136 RenderView() {} 139 RenderView() {}
137 }; 140 };
138 141
139 } // namespace content 142 } // namespace content
140 143
141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 144 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698