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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Returns the main RenderFrame. | 69 // Returns the main RenderFrame. |
70 virtual RenderFrame* GetMainRenderFrame() = 0; | 70 virtual RenderFrame* GetMainRenderFrame() = 0; |
71 | 71 |
72 // Get the routing ID of the view. | 72 // Get the routing ID of the view. |
73 virtual int GetRoutingID() const = 0; | 73 virtual int GetRoutingID() const = 0; |
74 | 74 |
75 // Returns the size of the view. | 75 // Returns the size of the view. |
76 virtual gfx::Size GetSize() const = 0; | 76 virtual gfx::Size GetSize() const = 0; |
77 | 77 |
| 78 // Returns the device scale factor of the display the render view is in. |
| 79 virtual float GetDeviceScaleFactor() const = 0; |
| 80 |
78 // Gets WebKit related preferences associated with this view. | 81 // Gets WebKit related preferences associated with this view. |
79 virtual WebPreferences& GetWebkitPreferences() = 0; | 82 virtual WebPreferences& GetWebkitPreferences() = 0; |
80 | 83 |
81 // Overrides the WebKit related preferences associated with this view. Note | 84 // Overrides the WebKit related preferences associated with this view. Note |
82 // that the browser process may update the preferences at any time. | 85 // that the browser process may update the preferences at any time. |
83 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; | 86 virtual void SetWebkitPreferences(const WebPreferences& preferences) = 0; |
84 | 87 |
85 // Returns the associated WebView. May return NULL when the view is closing. | 88 // Returns the associated WebView. May return NULL when the view is closing. |
86 virtual blink::WebView* GetWebView() = 0; | 89 virtual blink::WebView* GetWebView() = 0; |
87 | 90 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 145 |
143 private: | 146 private: |
144 // This interface should only be implemented inside content. | 147 // This interface should only be implemented inside content. |
145 friend class RenderViewImpl; | 148 friend class RenderViewImpl; |
146 RenderView() {} | 149 RenderView() {} |
147 }; | 150 }; |
148 | 151 |
149 } // namespace content | 152 } // namespace content |
150 | 153 |
151 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 154 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |