Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: content/common/frame_messages.h

Issue 1154673005: Formalize a RenderFrameHost::AddMessageToConsole() API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android fix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // IPC messages for interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
11 #include "content/common/frame_param.h" 11 #include "content/common/frame_param.h"
12 #include "content/common/frame_replication_state.h" 12 #include "content/common/frame_replication_state.h"
13 #include "content/common/navigation_gesture.h" 13 #include "content/common/navigation_gesture.h"
14 #include "content/common/navigation_params.h" 14 #include "content/common/navigation_params.h"
15 #include "content/common/resource_request_body.h" 15 #include "content/common/resource_request_body.h"
16 #include "content/public/common/color_suggestion.h" 16 #include "content/public/common/color_suggestion.h"
17 #include "content/public/common/common_param_traits.h" 17 #include "content/public/common/common_param_traits.h"
18 #include "content/public/common/console_message_level.h"
18 #include "content/public/common/context_menu_params.h" 19 #include "content/public/common/context_menu_params.h"
19 #include "content/public/common/frame_navigate_params.h" 20 #include "content/public/common/frame_navigate_params.h"
20 #include "content/public/common/javascript_message_type.h" 21 #include "content/public/common/javascript_message_type.h"
21 #include "content/public/common/message_port_types.h" 22 #include "content/public/common/message_port_types.h"
22 #include "content/public/common/page_state.h" 23 #include "content/public/common/page_state.h"
23 #include "content/public/common/resource_response.h" 24 #include "content/public/common/resource_response.h"
24 #include "content/public/common/transition_element.h" 25 #include "content/public/common/transition_element.h"
25 #include "ipc/ipc_message_macros.h" 26 #include "ipc/ipc_message_macros.h"
26 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 27 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
27 #include "ui/gfx/ipc/gfx_param_traits.h" 28 #include "ui/gfx/ipc/gfx_param_traits.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading) 472 IPC_MESSAGE_ROUTED0(FrameMsg_DidStartLoading)
472 473
473 // A message sent to RenderFrameProxy to indicate that its corresponding 474 // A message sent to RenderFrameProxy to indicate that its corresponding
474 // RenderFrame has completed loading. 475 // RenderFrame has completed loading.
475 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading) 476 IPC_MESSAGE_ROUTED0(FrameMsg_DidStopLoading)
476 477
477 // Request for the renderer to insert CSS into the frame. 478 // Request for the renderer to insert CSS into the frame.
478 IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest, 479 IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest,
479 std::string /* css */) 480 std::string /* css */)
480 481
482 // Add message to the devtools console.
483 IPC_MESSAGE_ROUTED2(FrameMsg_AddMessageToConsole,
484 content::ConsoleMessageLevel /* level */,
485 std::string /* message */)
486
481 // Request for the renderer to execute JavaScript in the frame's context. 487 // Request for the renderer to execute JavaScript in the frame's context.
482 // 488 //
483 // javascript is the string containing the JavaScript to be executed in the 489 // javascript is the string containing the JavaScript to be executed in the
484 // target frame's context. 490 // target frame's context.
485 // 491 //
486 // If the third parameter is true the result is sent back to the browser using 492 // If the third parameter is true the result is sent back to the browser using
487 // the message FrameHostMsg_JavaScriptExecuteResponse. 493 // the message FrameHostMsg_JavaScriptExecuteResponse.
488 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the 494 // FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the
489 // host can uniquely identify the request. 495 // host can uniquely identify the request.
490 IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest, 496 IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest,
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 FrameMsg_PostMessage_Params) 976 FrameMsg_PostMessage_Params)
971 977
972 #if defined(OS_MACOSX) || defined(OS_ANDROID) 978 #if defined(OS_MACOSX) || defined(OS_ANDROID)
973 979
974 // Message to show/hide a popup menu using native controls. 980 // Message to show/hide a popup menu using native controls.
975 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, 981 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup,
976 FrameHostMsg_ShowPopup_Params) 982 FrameHostMsg_ShowPopup_Params)
977 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) 983 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup)
978 984
979 #endif 985 #endif
OLDNEW
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698