OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 307 |
308 // Captures a snapshot of the page. | 308 // Captures a snapshot of the page. |
309 void CaptureSnapshot(); | 309 void CaptureSnapshot(); |
310 | 310 |
311 // Notifies the RenderView that the JavaScript message that was shown was | 311 // Notifies the RenderView that the JavaScript message that was shown was |
312 // closed by the user. | 312 // closed by the user. |
313 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg, | 313 void JavaScriptMessageBoxClosed(IPC::Message* reply_msg, |
314 bool success, | 314 bool success, |
315 const std::wstring& prompt); | 315 const std::wstring& prompt); |
316 | 316 |
317 // Notifies the RenderView that the modal html dialog has been closed. | |
318 void ModalHTMLDialogClosed(IPC::Message* reply_msg, | |
319 const std::string& json_retval); | |
320 | |
321 // Send an action to the media player element located at |location|. | 317 // Send an action to the media player element located at |location|. |
322 void MediaPlayerActionAt(const gfx::Point& location, | 318 void MediaPlayerActionAt(const gfx::Point& location, |
323 const WebKit::WebMediaPlayerAction& action); | 319 const WebKit::WebMediaPlayerAction& action); |
324 | 320 |
325 // Notifies the renderer that the context menu has closed. | 321 // Notifies the renderer that the context menu has closed. |
326 void ContextMenuClosed( | 322 void ContextMenuClosed( |
327 const webkit_glue::CustomContextMenuContext& custom_context); | 323 const webkit_glue::CustomContextMenuContext& custom_context); |
328 | 324 |
329 // Prints the node that's under the context menu. | 325 // Prints the node that's under the context menu. |
330 void PrintNodeUnderContextMenu(); | 326 void PrintNodeUnderContextMenu(); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 void OnMsgSelectionChanged(const std::string& text); | 594 void OnMsgSelectionChanged(const std::string& text); |
599 void OnMsgPasteFromSelectionClipboard(); | 595 void OnMsgPasteFromSelectionClipboard(); |
600 void OnMsgRunJavaScriptMessage(const std::wstring& message, | 596 void OnMsgRunJavaScriptMessage(const std::wstring& message, |
601 const std::wstring& default_prompt, | 597 const std::wstring& default_prompt, |
602 const GURL& frame_url, | 598 const GURL& frame_url, |
603 const int flags, | 599 const int flags, |
604 IPC::Message* reply_msg); | 600 IPC::Message* reply_msg); |
605 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, | 601 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, |
606 const std::wstring& message, | 602 const std::wstring& message, |
607 IPC::Message* reply_msg); | 603 IPC::Message* reply_msg); |
608 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, | |
609 const std::string& json_arguments, | |
610 IPC::Message* reply_msg); | |
611 void OnMsgStartDragging(const WebDropData& drop_data, | 604 void OnMsgStartDragging(const WebDropData& drop_data, |
612 WebKit::WebDragOperationsMask operations_allowed, | 605 WebKit::WebDragOperationsMask operations_allowed, |
613 const SkBitmap& image, | 606 const SkBitmap& image, |
614 const gfx::Point& image_offset); | 607 const gfx::Point& image_offset); |
615 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); | 608 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); |
616 void OnTakeFocus(bool reverse); | 609 void OnTakeFocus(bool reverse); |
617 void OnAddMessageToConsole(const std::wstring& message, | 610 void OnAddMessageToConsole(const std::wstring& message, |
618 int32 line_no, | 611 int32 line_no, |
619 const std::wstring& source_id); | 612 const std::wstring& source_id); |
620 void OnUpdateInspectorSetting(const std::string& key, | 613 void OnUpdateInspectorSetting(const std::string& key, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 // The termination status of the last render view that terminated. | 727 // The termination status of the last render view that terminated. |
735 base::TerminationStatus render_view_termination_status_; | 728 base::TerminationStatus render_view_termination_status_; |
736 | 729 |
737 // The enabled/disabled states of various commands. | 730 // The enabled/disabled states of various commands. |
738 std::map<RenderViewCommand, CommandState> command_states_; | 731 std::map<RenderViewCommand, CommandState> command_states_; |
739 | 732 |
740 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 733 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
741 }; | 734 }; |
742 | 735 |
743 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 736 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |