| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 class BrowserContext; | 48 class BrowserContext; |
| 49 class FrameTree; | 49 class FrameTree; |
| 50 class PageState; | 50 class PageState; |
| 51 class RenderViewHost; | 51 class RenderViewHost; |
| 52 class RenderViewHostDelegateView; | 52 class RenderViewHostDelegateView; |
| 53 class SessionStorageNamespace; | 53 class SessionStorageNamespace; |
| 54 class SiteInstance; | 54 class SiteInstance; |
| 55 class WebContents; | 55 class WebContents; |
| 56 class WebContentsImpl; | 56 class WebContentsImpl; |
| 57 struct ContextMenuParams; | |
| 58 struct FileChooserParams; | 57 struct FileChooserParams; |
| 59 struct GlobalRequestID; | 58 struct GlobalRequestID; |
| 60 struct NativeWebKeyboardEvent; | 59 struct NativeWebKeyboardEvent; |
| 61 struct Referrer; | 60 struct Referrer; |
| 62 struct RendererPreferences; | 61 struct RendererPreferences; |
| 63 | 62 |
| 64 // | 63 // |
| 65 // RenderViewHostDelegate | 64 // RenderViewHostDelegate |
| 66 // | 65 // |
| 67 // An interface implemented by an object interested in knowing about the state | 66 // An interface implemented by an object interested in knowing about the state |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 bool user_gesture) {} | 386 bool user_gesture) {} |
| 388 | 387 |
| 389 // Show the newly created widget with the specified bounds. | 388 // Show the newly created widget with the specified bounds. |
| 390 // The widget is identified by the route_id passed to CreateNewWidget. | 389 // The widget is identified by the route_id passed to CreateNewWidget. |
| 391 virtual void ShowCreatedWidget(int route_id, | 390 virtual void ShowCreatedWidget(int route_id, |
| 392 const gfx::Rect& initial_pos) {} | 391 const gfx::Rect& initial_pos) {} |
| 393 | 392 |
| 394 // Show the newly created full screen widget. Similar to above. | 393 // Show the newly created full screen widget. Similar to above. |
| 395 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 394 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
| 396 | 395 |
| 397 // A context menu should be shown, to be built using the context information | |
| 398 // provided in the supplied params. | |
| 399 virtual void ShowContextMenu(const ContextMenuParams& params) {} | |
| 400 | |
| 401 // The render view has requested access to media devices listed in | 396 // The render view has requested access to media devices listed in |
| 402 // |request|, and the client should grant or deny that permission by | 397 // |request|, and the client should grant or deny that permission by |
| 403 // calling |callback|. | 398 // calling |callback|. |
| 404 virtual void RequestMediaAccessPermission( | 399 virtual void RequestMediaAccessPermission( |
| 405 const MediaStreamRequest& request, | 400 const MediaStreamRequest& request, |
| 406 const MediaResponseCallback& callback) {} | 401 const MediaResponseCallback& callback) {} |
| 407 | 402 |
| 408 // Returns the SessionStorageNamespace the render view should use. Might | 403 // Returns the SessionStorageNamespace the render view should use. Might |
| 409 // create the SessionStorageNamespace on the fly. | 404 // create the SessionStorageNamespace on the fly. |
| 410 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 405 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
| 411 SiteInstance* instance); | 406 SiteInstance* instance); |
| 412 | 407 |
| 413 // Returns the FrameTree the render view should use. Guaranteed to be constant | 408 // Returns the FrameTree the render view should use. Guaranteed to be constant |
| 414 // for the lifetime of the render view. | 409 // for the lifetime of the render view. |
| 415 // | 410 // |
| 416 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer | 411 // TODO(ajwong): Remove once the main frame RenderFrameHost is no longer |
| 417 // created by the RenderViewHost. | 412 // created by the RenderViewHost. |
| 418 virtual FrameTree* GetFrameTree(); | 413 virtual FrameTree* GetFrameTree(); |
| 419 | 414 |
| 420 protected: | 415 protected: |
| 421 virtual ~RenderViewHostDelegate() {} | 416 virtual ~RenderViewHostDelegate() {} |
| 422 }; | 417 }; |
| 423 | 418 |
| 424 } // namespace content | 419 } // namespace content |
| 425 | 420 |
| 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |