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

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

Issue 2862753002: Mark Render{Frame,View}::GetWebkitPreferences() return values as const. (Closed)
Patch Set: Created 3 years, 7 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 | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.h » ('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) 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Get the routing ID of the view. 64 // Get the routing ID of the view.
65 virtual int GetRoutingID() const = 0; 65 virtual int GetRoutingID() const = 0;
66 66
67 // Returns the size of the view. 67 // Returns the size of the view.
68 virtual gfx::Size GetSize() const = 0; 68 virtual gfx::Size GetSize() const = 0;
69 69
70 // Returns the device scale factor of the display the render view is in. 70 // Returns the device scale factor of the display the render view is in.
71 virtual float GetDeviceScaleFactor() const = 0; 71 virtual float GetDeviceScaleFactor() const = 0;
72 72
73 // Gets WebKit related preferences associated with this view. 73 // Gets WebKit related preferences associated with this view.
74 virtual WebPreferences& GetWebkitPreferences() = 0; 74 virtual const WebPreferences& GetWebkitPreferences() = 0;
75 75
76 // Overrides the WebKit related preferences associated with this view. Note 76 // Overrides the WebKit related preferences associated with this view. Note
77 // that the browser process may update the preferences at any time. 77 // that the browser process may update the preferences at any time.
78 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; 78 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0;
79 79
80 // Returns the associated WebView. May return NULL when the view is closing. 80 // Returns the associated WebView. May return NULL when the view is closing.
81 virtual blink::WebView* GetWebView() = 0; 81 virtual blink::WebView* GetWebView() = 0;
82 82
83 // Returns the associated WebFrameWidget. 83 // Returns the associated WebFrameWidget.
84 virtual blink::WebFrameWidget* GetWebFrameWidget() = 0; 84 virtual blink::WebFrameWidget* GetWebFrameWidget() = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 private: 131 private:
132 // This interface should only be implemented inside content. 132 // This interface should only be implemented inside content.
133 friend class RenderViewImpl; 133 friend class RenderViewImpl;
134 RenderView() {} 134 RenderView() {}
135 }; 135 };
136 136
137 } // namespace content 137 } // namespace content
138 138
139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 139 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698