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" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/public/common/context_menu_source_type.h" |
16 #include "content/public/common/javascript_message_type.h" | 17 #include "content/public/common/javascript_message_type.h" |
17 #include "content/public/common/media_stream_request.h" | 18 #include "content/public/common/media_stream_request.h" |
18 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
20 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
21 | 22 |
22 class GURL; | 23 class GURL; |
23 class SkBitmap; | 24 class SkBitmap; |
24 class WebContentsImpl; | 25 class WebContentsImpl; |
25 class WebKeyboardEvent; | 26 class WebKeyboardEvent; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // Show the newly created widget with the specified bounds. | 398 // Show the newly created widget with the specified bounds. |
398 // The widget is identified by the route_id passed to CreateNewWidget. | 399 // The widget is identified by the route_id passed to CreateNewWidget. |
399 virtual void ShowCreatedWidget(int route_id, | 400 virtual void ShowCreatedWidget(int route_id, |
400 const gfx::Rect& initial_pos) {} | 401 const gfx::Rect& initial_pos) {} |
401 | 402 |
402 // Show the newly created full screen widget. Similar to above. | 403 // Show the newly created full screen widget. Similar to above. |
403 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 404 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
404 | 405 |
405 // A context menu should be shown, to be built using the context information | 406 // A context menu should be shown, to be built using the context information |
406 // provided in the supplied params. | 407 // provided in the supplied params. |
407 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 408 virtual void ShowContextMenu(const ContextMenuParams& params, |
| 409 const ContextMenuSourceType& type) {} |
408 | 410 |
409 // The render view has requested access to media devices listed in | 411 // The render view has requested access to media devices listed in |
410 // |request|, and the client should grant or deny that permission by | 412 // |request|, and the client should grant or deny that permission by |
411 // calling |callback|. | 413 // calling |callback|. |
412 virtual void RequestMediaAccessPermission( | 414 virtual void RequestMediaAccessPermission( |
413 const MediaStreamRequest* request, | 415 const MediaStreamRequest* request, |
414 const MediaResponseCallback& callback) {} | 416 const MediaResponseCallback& callback) {} |
415 | 417 |
416 #if defined(OS_ANDROID) | 418 #if defined(OS_ANDROID) |
417 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 419 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
418 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 420 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
419 #endif | 421 #endif |
420 | 422 |
421 protected: | 423 protected: |
422 virtual ~RenderViewHostDelegate() {} | 424 virtual ~RenderViewHostDelegate() {} |
423 }; | 425 }; |
424 | 426 |
425 } // namespace content | 427 } // namespace content |
426 | 428 |
427 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |