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_event_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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // Show the newly created widget with the specified bounds. | 394 // Show the newly created widget with the specified bounds. |
394 // The widget is identified by the route_id passed to CreateNewWidget. | 395 // The widget is identified by the route_id passed to CreateNewWidget. |
395 virtual void ShowCreatedWidget(int route_id, | 396 virtual void ShowCreatedWidget(int route_id, |
396 const gfx::Rect& initial_pos) {} | 397 const gfx::Rect& initial_pos) {} |
397 | 398 |
398 // Show the newly created full screen widget. Similar to above. | 399 // Show the newly created full screen widget. Similar to above. |
399 virtual void ShowCreatedFullscreenWidget(int route_id) {} | 400 virtual void ShowCreatedFullscreenWidget(int route_id) {} |
400 | 401 |
401 // A context menu should be shown, to be built using the context information | 402 // A context menu should be shown, to be built using the context information |
402 // provided in the supplied params. | 403 // provided in the supplied params. |
403 virtual void ShowContextMenu(const ContextMenuParams& params) {} | 404 virtual void ShowContextMenu(const ContextMenuParams& params, |
| 405 const ContextMenuEventType& type) {} |
404 | 406 |
405 // The render view has requested access to media devices listed in | 407 // The render view has requested access to media devices listed in |
406 // |request|, and the client should grant or deny that permission by | 408 // |request|, and the client should grant or deny that permission by |
407 // calling |callback|. | 409 // calling |callback|. |
408 virtual void RequestMediaAccessPermission( | 410 virtual void RequestMediaAccessPermission( |
409 const MediaStreamRequest* request, | 411 const MediaStreamRequest* request, |
410 const MediaResponseCallback& callback) {} | 412 const MediaResponseCallback& callback) {} |
411 | 413 |
412 protected: | 414 protected: |
413 virtual ~RenderViewHostDelegate() {} | 415 virtual ~RenderViewHostDelegate() {} |
414 }; | 416 }; |
415 | 417 |
416 } // namespace content | 418 } // namespace content |
417 | 419 |
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |