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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // calling |callback|. | 301 // calling |callback|. |
302 virtual void RequestMediaAccessPermission( | 302 virtual void RequestMediaAccessPermission( |
303 const MediaStreamRequest& request, | 303 const MediaStreamRequest& request, |
304 const MediaResponseCallback& callback) {} | 304 const MediaResponseCallback& callback) {} |
305 | 305 |
306 // Returns the SessionStorageNamespace the render view should use. Might | 306 // Returns the SessionStorageNamespace the render view should use. Might |
307 // create the SessionStorageNamespace on the fly. | 307 // create the SessionStorageNamespace on the fly. |
308 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 308 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
309 SiteInstance* instance); | 309 SiteInstance* instance); |
310 | 310 |
| 311 // Returns true if the RenderViewHost will never be visible. |
| 312 virtual bool IsNeverVisible(); |
| 313 |
311 // Returns the FrameTree the render view should use. Guaranteed to be constant | 314 // Returns the FrameTree the render view should use. Guaranteed to be constant |
312 // for the lifetime of the render view. | 315 // for the lifetime of the render view. |
313 // | 316 // |
314 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 317 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
315 // created by the RenderViewHost. | 318 // created by the RenderViewHost. |
316 virtual FrameTree* GetFrameTree(); | 319 virtual FrameTree* GetFrameTree(); |
317 | 320 |
318 // Invoked when an accessibility event is received from the renderer. | 321 // Invoked when an accessibility event is received from the renderer. |
319 virtual void AccessibilityEventReceived( | 322 virtual void AccessibilityEventReceived( |
320 const std::vector<AXEventNotificationDetails>& details) {} | 323 const std::vector<AXEventNotificationDetails>& details) {} |
321 | 324 |
322 protected: | 325 protected: |
323 virtual ~RenderViewHostDelegate() {} | 326 virtual ~RenderViewHostDelegate() {} |
324 }; | 327 }; |
325 | 328 |
326 } // namespace content | 329 } // namespace content |
327 | 330 |
328 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 331 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |