OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |