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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 | 213 |
214 // Returns the SessionStorageNamespace the render view should use. Might | 214 // Returns the SessionStorageNamespace the render view should use. Might |
215 // create the SessionStorageNamespace on the fly. | 215 // create the SessionStorageNamespace on the fly. |
216 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 216 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
217 SiteInstance* instance); | 217 SiteInstance* instance); |
218 | 218 |
219 // Returns a copy of the map of all session storage namespaces related | 219 // Returns a copy of the map of all session storage namespaces related |
220 // to this view. | 220 // to this view. |
221 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); | 221 virtual SessionStorageNamespaceMap GetSessionStorageNamespaceMap(); |
222 | 222 |
223 // Returns the zoom level for the page. | |
224 virtual double PageZoomLevel(); | |
ncarter (slow)
2016/04/11 22:17:03
Rename to GetPageZoomLevel
wjmaclean
2016/04/13 18:47:47
Done.
| |
225 | |
223 // Returns true if the RenderViewHost will never be visible. | 226 // Returns true if the RenderViewHost will never be visible. |
224 virtual bool IsNeverVisible(); | 227 virtual bool IsNeverVisible(); |
225 | 228 |
226 // Returns the FrameTree the render view should use. Guaranteed to be constant | 229 // Returns the FrameTree the render view should use. Guaranteed to be constant |
227 // for the lifetime of the render view. | 230 // for the lifetime of the render view. |
228 // | 231 // |
229 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 232 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
230 // created by the RenderViewHost. | 233 // created by the RenderViewHost. |
231 virtual FrameTree* GetFrameTree(); | 234 virtual FrameTree* GetFrameTree(); |
232 | 235 |
233 // Optional state storage for if the Virtual Keyboard has been requested by | 236 // Optional state storage for if the Virtual Keyboard has been requested by |
234 // this page or not. If it has, this can be used to suppress things like the | 237 // this page or not. If it has, this can be used to suppress things like the |
235 // link disambiguation dialog, which doesn't interact well with the virtual | 238 // link disambiguation dialog, which doesn't interact well with the virtual |
236 // keyboard. | 239 // keyboard. |
237 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 240 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
238 virtual bool IsVirtualKeyboardRequested(); | 241 virtual bool IsVirtualKeyboardRequested(); |
239 | 242 |
240 protected: | 243 protected: |
241 virtual ~RenderViewHostDelegate() {} | 244 virtual ~RenderViewHostDelegate() {} |
242 }; | 245 }; |
243 | 246 |
244 } // namespace content | 247 } // namespace content |
245 | 248 |
246 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 249 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |