OLD | NEW |
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" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 // Notifies the color chooser client that the user selected a color. | 351 // Notifies the color chooser client that the user selected a color. |
352 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) | 352 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) |
353 | 353 |
354 // Notifies the color chooser client that the color chooser has ended. | 354 // Notifies the color chooser client that the color chooser has ended. |
355 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) | 355 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) |
356 | 356 |
357 // Notifies the corresponding RenderFrameProxy object to replace itself with the | 357 // Notifies the corresponding RenderFrameProxy object to replace itself with the |
358 // RenderFrame object it is associated with. | 358 // RenderFrame object it is associated with. |
359 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) | 359 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) |
360 | 360 |
| 361 // Request the text surrounding the selection with a |max_length|. The response |
| 362 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. |
| 363 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, |
| 364 size_t /* max_length */) |
| 365 |
361 // ----------------------------------------------------------------------------- | 366 // ----------------------------------------------------------------------------- |
362 // Messages sent from the renderer to the browser. | 367 // Messages sent from the renderer to the browser. |
363 | 368 |
364 // Blink and JavaScript error messages to log to the console | 369 // Blink and JavaScript error messages to log to the console |
365 // or debugger UI. | 370 // or debugger UI. |
366 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 371 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
367 int32, /* log level */ | 372 int32, /* log level */ |
368 base::string16, /* msg */ | 373 base::string16, /* msg */ |
369 int32, /* line number */ | 374 int32, /* line number */ |
370 base::string16 /* source id */ ) | 375 base::string16 /* source id */ ) |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 SkColor /* color */) | 605 SkColor /* color */) |
601 | 606 |
602 // Notifies the browser that media has started/stopped playing. | 607 // Notifies the browser that media has started/stopped playing. |
603 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, | 608 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, |
604 int64 /* player_cookie, distinguishes instances */, | 609 int64 /* player_cookie, distinguishes instances */, |
605 bool /* has_video */, | 610 bool /* has_video */, |
606 bool /* has_audio */) | 611 bool /* has_audio */) |
607 | 612 |
608 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, | 613 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, |
609 int64 /* player_cookie, distinguishes instances */) | 614 int64 /* player_cookie, distinguishes instances */) |
| 615 |
| 616 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 617 // |endOffset| are the offsets of the selection in the returned |content|. |
| 618 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 619 base::string16, /* content */ |
| 620 size_t, /* startOffset */ |
| 621 size_t /* endOffset */) |
OLD | NEW |