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

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

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 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
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"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698