OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 // Multiply-included message file, no include guard. | 5 // Multiply-included message file, no include guard. |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Messages sent from the browser to the viewer: | 93 // Messages sent from the browser to the viewer: |
94 | 94 |
95 // Requests the viewer to activate desktop mode. | 95 // Requests the viewer to activate desktop mode. |
96 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ActivateDesktop, | 96 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ActivateDesktop, |
97 base::FilePath /* shortcut */, | 97 base::FilePath /* shortcut */, |
98 bool /* ash exit */); | 98 bool /* ash exit */); |
99 | 99 |
100 // Requests the viewer to open a URL in desktop mode. | 100 // Requests the viewer to open a URL in desktop mode. |
101 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_OpenURLOnDesktop, | 101 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_OpenURLOnDesktop, |
102 base::FilePath, /* shortcut */ | 102 base::FilePath, /* shortcut */ |
103 string16 /* url */); | 103 base::string16 /* url */); |
104 | 104 |
105 // Requests the viewer to change the pointer to a new cursor. | 105 // Requests the viewer to change the pointer to a new cursor. |
106 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetCursor, | 106 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetCursor, |
107 int64 /* cursor */); | 107 int64 /* cursor */); |
108 | 108 |
109 // This structure contains the parameters sent to the viewer process to display | 109 // This structure contains the parameters sent to the viewer process to display |
110 // the file save dialog. | 110 // the file save dialog. |
111 IPC_STRUCT_BEGIN(MetroViewerHostMsg_SaveAsDialogParams) | 111 IPC_STRUCT_BEGIN(MetroViewerHostMsg_SaveAsDialogParams) |
112 | 112 |
113 // The title of the file save dialog if any. | 113 // The title of the file save dialog if any. |
114 IPC_STRUCT_MEMBER(string16, title) | 114 IPC_STRUCT_MEMBER(base::string16, title) |
115 | 115 |
116 // The suggested file name. | 116 // The suggested file name. |
117 IPC_STRUCT_MEMBER(base::FilePath, suggested_name) | 117 IPC_STRUCT_MEMBER(base::FilePath, suggested_name) |
118 | 118 |
119 // The save as filter to be used. | 119 // The save as filter to be used. |
120 IPC_STRUCT_MEMBER(string16, filter) | 120 IPC_STRUCT_MEMBER(base::string16, filter) |
121 | 121 |
122 // The filter index. | 122 // The filter index. |
123 IPC_STRUCT_MEMBER(uint32, filter_index) | 123 IPC_STRUCT_MEMBER(uint32, filter_index) |
124 | 124 |
125 // The default extension. | 125 // The default extension. |
126 IPC_STRUCT_MEMBER(string16, default_extension) | 126 IPC_STRUCT_MEMBER(base::string16, default_extension) |
127 | 127 |
128 IPC_STRUCT_END() | 128 IPC_STRUCT_END() |
129 | 129 |
130 // Requests the viewer to display the file save dialog. | 130 // Requests the viewer to display the file save dialog. |
131 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplayFileSaveAs, | 131 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplayFileSaveAs, |
132 MetroViewerHostMsg_SaveAsDialogParams) | 132 MetroViewerHostMsg_SaveAsDialogParams) |
133 | 133 |
134 // Requests the viewer to display the file open dialog. | 134 // Requests the viewer to display the file open dialog. |
135 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_DisplayFileOpen, | 135 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_DisplayFileOpen, |
136 string16, /* title */ | 136 base::string16, /* title */ |
137 string16, /* filter */ | 137 base::string16, /* filter */ |
138 base::FilePath, /* Default path */ | 138 base::FilePath, /* Default path */ |
139 bool) /* allow_multi_select */ | 139 bool) /* allow_multi_select */ |
140 | 140 |
141 // Requests the viewer to display the select folder dialog. | 141 // Requests the viewer to display the select folder dialog. |
142 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplaySelectFolder, | 142 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplaySelectFolder, |
143 string16) /* title */ | 143 base::string16) /* title */ |
144 | 144 |
145 // Sent to the viewer process to set the cursor position. | 145 // Sent to the viewer process to set the cursor position. |
146 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SetCursorPos, | 146 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SetCursorPos, |
147 int, /* x */ | 147 int, /* x */ |
148 int) /* y */ | 148 int) /* y */ |
149 | 149 |
150 // Ack sent by the viewer process indicating that the SetCursorPos operation | 150 // Ack sent by the viewer process indicating that the SetCursorPos operation |
151 // was completed. | 151 // was completed. |
152 IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_SetCursorPosAck) | 152 IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_SetCursorPosAck) |
153 | 153 |
154 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_OpenURL, | 154 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_OpenURL, |
155 string16) /* url */ | 155 base::string16) /* url */ |
156 | 156 |
157 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SearchRequest, | 157 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SearchRequest, |
158 string16) /* search_string */ | 158 base::string16) /* search_string */ |
159 | 159 |
160 // Sent from the metro viewer process to the browser process to indicate that | 160 // Sent from the metro viewer process to the browser process to indicate that |
161 // the viewer window size has changed. | 161 // the viewer window size has changed. |
162 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_WindowSizeChanged, | 162 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_WindowSizeChanged, |
163 uint32, /* width */ | 163 uint32, /* width */ |
164 uint32) /* height */ | 164 uint32) /* height */ |
165 | 165 |
166 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::UnderlineInfo) | 166 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::UnderlineInfo) |
167 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 167 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
168 IPC_STRUCT_TRAITS_MEMBER(end_offset) | 168 IPC_STRUCT_TRAITS_MEMBER(end_offset) |
169 IPC_STRUCT_TRAITS_MEMBER(thick) | 169 IPC_STRUCT_TRAITS_MEMBER(thick) |
170 IPC_STRUCT_TRAITS_END() | 170 IPC_STRUCT_TRAITS_END() |
171 | 171 |
172 // Sent from the metro viewer process to the browser process to update the | 172 // Sent from the metro viewer process to the browser process to update the |
173 // composition string. | 173 // composition string. |
174 IPC_MESSAGE_CONTROL4( | 174 IPC_MESSAGE_CONTROL4( |
175 MetroViewerHostMsg_ImeCompositionChanged, | 175 MetroViewerHostMsg_ImeCompositionChanged, |
176 string16, /* text */ | 176 base::string16, /* text */ |
177 int32, /* selection_start */ | 177 int32, /* selection_start */ |
178 int32, /* selection_end */ | 178 int32, /* selection_end */ |
179 std::vector<metro_viewer::UnderlineInfo>) /* underlines */ | 179 std::vector<metro_viewer::UnderlineInfo>) /* underlines */ |
180 | 180 |
181 // Sent from the metro viewer process to the browser process to update the | 181 // Sent from the metro viewer process to the browser process to update the |
182 // status of popup window that is managed by an IME. | 182 // status of popup window that is managed by an IME. |
183 IPC_MESSAGE_CONTROL1( | 183 IPC_MESSAGE_CONTROL1( |
184 MetroViewerHostMsg_ImeCandidatePopupChanged, | 184 MetroViewerHostMsg_ImeCandidatePopupChanged, |
185 bool) /* UI visibility */ | 185 bool) /* UI visibility */ |
186 | 186 |
187 // Sent from the metro viewer process to the browser process to commit strings. | 187 // Sent from the metro viewer process to the browser process to commit strings. |
188 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_ImeTextCommitted, | 188 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_ImeTextCommitted, |
189 string16) /* text */ | 189 base::string16) /* text */ |
190 | 190 |
191 // Sent from the metro viewer process to the browser process to notify that the | 191 // Sent from the metro viewer process to the browser process to notify that the |
192 // active text input source is changed. | 192 // active text input source is changed. |
193 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ImeInputSourceChanged, | 193 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ImeInputSourceChanged, |
194 uint16, /* Win32 LangID */ | 194 uint16, /* Win32 LangID */ |
195 bool) /* is IME or not */ | 195 bool) /* is IME or not */ |
196 | 196 |
197 // Requests the viewer to cancel the on-going composition. | 197 // Requests the viewer to cancel the on-going composition. |
198 IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_ImeCancelComposition) | 198 IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_ImeCancelComposition) |
199 | 199 |
200 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::CharacterBounds) | 200 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::CharacterBounds) |
201 IPC_STRUCT_TRAITS_MEMBER(left) | 201 IPC_STRUCT_TRAITS_MEMBER(left) |
202 IPC_STRUCT_TRAITS_MEMBER(top) | 202 IPC_STRUCT_TRAITS_MEMBER(top) |
203 IPC_STRUCT_TRAITS_MEMBER(right) | 203 IPC_STRUCT_TRAITS_MEMBER(right) |
204 IPC_STRUCT_TRAITS_MEMBER(bottom) | 204 IPC_STRUCT_TRAITS_MEMBER(bottom) |
205 IPC_STRUCT_TRAITS_END() | 205 IPC_STRUCT_TRAITS_END() |
206 | 206 |
207 // Requests the viewer to update the document context such as attached | 207 // Requests the viewer to update the document context such as attached |
208 // InputScopes and character bounds. | 208 // InputScopes and character bounds. |
209 IPC_MESSAGE_CONTROL2( | 209 IPC_MESSAGE_CONTROL2( |
210 MetroViewerHostMsg_ImeTextInputClientUpdated, | 210 MetroViewerHostMsg_ImeTextInputClientUpdated, |
211 std::vector<int32>, /* InputScope enums */ | 211 std::vector<int32>, /* InputScope enums */ |
212 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ | 212 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ |
OLD | NEW |