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" |
11 #include "ui/events/event_constants.h" | 11 #include "ui/events/event_constants.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/metro_viewer/ime_types.h" |
13 | 14 |
14 #define IPC_MESSAGE_START MetroViewerMsgStart | 15 #define IPC_MESSAGE_START MetroViewerMsgStart |
15 | 16 |
16 IPC_ENUM_TRAITS(ui::EventType) | 17 IPC_ENUM_TRAITS(ui::EventType) |
17 IPC_ENUM_TRAITS(ui::EventFlags) | 18 IPC_ENUM_TRAITS(ui::EventFlags) |
18 | 19 |
19 // Messages sent from the viewer to the browser: | 20 // Messages sent from the viewer to the browser: |
20 | 21 |
21 // Inform the browser of the surface to target for compositing. | 22 // Inform the browser of the surface to target for compositing. |
22 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, | 23 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetTargetSurface, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 string16) /* url */ | 158 string16) /* url */ |
158 | 159 |
159 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SearchRequest, | 160 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SearchRequest, |
160 string16) /* search_string */ | 161 string16) /* search_string */ |
161 | 162 |
162 // Sent from the metro viewer process to the browser process to indicate that | 163 // Sent from the metro viewer process to the browser process to indicate that |
163 // the viewer window size has changed. | 164 // the viewer window size has changed. |
164 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_WindowSizeChanged, | 165 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_WindowSizeChanged, |
165 uint32, /* width */ | 166 uint32, /* width */ |
166 uint32) /* height */ | 167 uint32) /* height */ |
| 168 |
| 169 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::UnderlineInfo) |
| 170 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 171 IPC_STRUCT_TRAITS_MEMBER(end_offset) |
| 172 IPC_STRUCT_TRAITS_MEMBER(thick) |
| 173 IPC_STRUCT_TRAITS_END() |
| 174 |
| 175 // Sent from the metro viewer process to the browser process to update the |
| 176 // composition string. |
| 177 IPC_MESSAGE_CONTROL4( |
| 178 MetroViewerHostMsg_ImeCompositionChanged, |
| 179 string16, /* text */ |
| 180 int32, /* selection_start */ |
| 181 int32, /* selection_end */ |
| 182 std::vector<metro_viewer::UnderlineInfo>) /* underlines */ |
| 183 |
| 184 // Sent from the metro viewer process to the browser process to update the |
| 185 // status of popup window that is managed by an IME. |
| 186 IPC_MESSAGE_CONTROL1( |
| 187 MetroViewerHostMsg_ImeCandidatePopupChanged, |
| 188 bool) /* UI visibility */ |
| 189 |
| 190 // Sent from the metro viewer process to the browser process to commit strings. |
| 191 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_ImeTextCommitted, |
| 192 string16) /* text */ |
| 193 |
| 194 // Sent from the metro viewer process to the browser process to notify that the |
| 195 // active text input source is changed. |
| 196 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_ImeInputSourceChanged, |
| 197 uint16, /* Win32 LangID */ |
| 198 bool) /* is IME or not */ |
| 199 |
| 200 // Requests the viewer to cancel the on-going composition. |
| 201 IPC_MESSAGE_CONTROL0(MetroViewerHostMsg_ImeCancelComposition) |
| 202 |
| 203 IPC_STRUCT_TRAITS_BEGIN(metro_viewer::CharacterBounds) |
| 204 IPC_STRUCT_TRAITS_MEMBER(left) |
| 205 IPC_STRUCT_TRAITS_MEMBER(top) |
| 206 IPC_STRUCT_TRAITS_MEMBER(right) |
| 207 IPC_STRUCT_TRAITS_MEMBER(bottom) |
| 208 IPC_STRUCT_TRAITS_END() |
| 209 |
| 210 // Requests the viewer to update the document context such as attached |
| 211 // InputScopes and character bounds. |
| 212 IPC_MESSAGE_CONTROL2( |
| 213 MetroViewerHostMsg_ImeTextInputClientUpdated, |
| 214 std::vector<int32>, /* InputScope enums */ |
| 215 std::vector<metro_viewer::CharacterBounds>) /* character bounds */ |
OLD | NEW |