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

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

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/common_param_traits.h" 10 #include "content/common/common_param_traits.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 // The ID of the view to be created. 785 // The ID of the view to be created.
786 IPC_STRUCT_MEMBER(int32, view_id) 786 IPC_STRUCT_MEMBER(int32, view_id)
787 787
788 // The session storage namespace ID this view should use. 788 // The session storage namespace ID this view should use.
789 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id) 789 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
790 790
791 // The name of the frame associated with this view (or empty if none). 791 // The name of the frame associated with this view (or empty if none).
792 IPC_STRUCT_MEMBER(string16, frame_name) 792 IPC_STRUCT_MEMBER(string16, frame_name)
793 IPC_STRUCT_END() 793 IPC_STRUCT_END()
794 794
795 IPC_STRUCT_BEGIN(ViewHostMsg_ImeUpdateTextInputState_Params)
796 // text input type.
797 IPC_STRUCT_MEMBER(ui::TextInputType, text_input_type)
798
799 // can compose inline.
800 IPC_STRUCT_MEMBER(bool, can_compose_inline)
801
802 // caret rectangle.
803 IPC_STRUCT_MEMBER(gfx::Rect, caret_bounds)
804
805 // surrounding text.
806 IPC_STRUCT_MEMBER(string16, surrounding)
807
808 // curosr.
809 IPC_STRUCT_MEMBER(size_t, cursor)
810
811 // anchor.
812 IPC_STRUCT_MEMBER(size_t, anchor)
813 IPC_STRUCT_END()
814
815
795 // Messages sent from the browser to the renderer. 816 // Messages sent from the browser to the renderer.
796 817
797 // Used typically when recovering from a crash. The new rendering process 818 // Used typically when recovering from a crash. The new rendering process
798 // sets its global "next page id" counter to the given value. 819 // sets its global "next page id" counter to the given value.
799 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, 820 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
800 int32 /* next_page_id */) 821 int32 /* next_page_id */)
801 822
802 // Sent to the RenderView when a new tab is swapped into an existing 823 // Sent to the RenderView when a new tab is swapped into an existing
803 // tab and the histories need to be merged. The existing tab has a history of 824 // tab and the histories need to be merged. The existing tab has a history of
804 // |merged_history_length| which precedes the history of the new tab. All 825 // |merged_history_length| which precedes the history of the new tab. All
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 bool /* reverse */) 1851 bool /* reverse */)
1831 1852
1832 // Returns the window location of the window this widget is embeded. 1853 // Returns the window location of the window this widget is embeded.
1833 // TODO(shess): Provide a mapping from reply_msg->routing_id() to 1854 // TODO(shess): Provide a mapping from reply_msg->routing_id() to
1834 // HWND so that we can eliminate the NativeViewId parameter. 1855 // HWND so that we can eliminate the NativeViewId parameter.
1835 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, 1856 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
1836 gfx::NativeViewId /* window */, 1857 gfx::NativeViewId /* window */,
1837 gfx::Rect /* Out: Window location */) 1858 gfx::Rect /* Out: Window location */)
1838 1859
1839 // Required for updating text input state. 1860 // Required for updating text input state.
1840 IPC_MESSAGE_ROUTED3(ViewHostMsg_ImeUpdateTextInputState, 1861 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeUpdateTextInputState,
1841 ui::TextInputType, /* text_input_type */ 1862 ViewHostMsg_ImeUpdateTextInputState_Params)
1842 bool, /* can_compose_inline */
1843 gfx::Rect /* caret_rect */)
1844
1845 1863
1846 // Message sent when the IME text composition range changes. 1864 // Message sent when the IME text composition range changes.
1847 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged, 1865 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged,
1848 ui::Range /* composition range */) 1866 ui::Range /* composition range */)
1849 1867
1850 // Required for cancelling an ongoing input method composition. 1868 // Required for cancelling an ongoing input method composition.
1851 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) 1869 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition)
1852 1870
1853 // WebKit and JavaScript error messages to log to the console 1871 // WebKit and JavaScript error messages to log to the console
1854 // or debugger UI. 1872 // or debugger UI.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 int32 /* complete status */) 2152 int32 /* complete status */)
2135 2153
2136 // Request updated information about the client firewall traversal policy. 2154 // Request updated information about the client firewall traversal policy.
2137 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message 2155 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message
2138 // being sent back. 2156 // being sent back.
2139 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) 2157 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal)
2140 2158
2141 // Notifies the browser of an event occurring in the media pipeline. 2159 // Notifies the browser of an event occurring in the media pipeline.
2142 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, 2160 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent,
2143 media::MediaLogEvent /* event */) 2161 media::MediaLogEvent /* event */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698