| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 uint32) /* pointer_id */ | 66 uint32) /* pointer_id */ |
| 67 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_TouchMoved, | 67 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_TouchMoved, |
| 68 int32, /* x-coordinate */ | 68 int32, /* x-coordinate */ |
| 69 int32, /* y-coordinate */ | 69 int32, /* y-coordinate */ |
| 70 uint64, /* timestamp */ | 70 uint64, /* timestamp */ |
| 71 uint32) /* pointer_id */ | 71 uint32) /* pointer_id */ |
| 72 | 72 |
| 73 // Informs the browser of the result of a file save as operation. | 73 // Informs the browser of the result of a file save as operation. |
| 74 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_FileSaveAsDone, | 74 IPC_MESSAGE_CONTROL3(MetroViewerHostMsg_FileSaveAsDone, |
| 75 bool, /* success */ | 75 bool, /* success */ |
| 76 string16, /* filename */ | 76 base::FilePath, /* filename */ |
| 77 int) /* filter_index */ | 77 int) /* filter_index */ |
| 78 | 78 |
| 79 // Informs the browser of the result of a file open operation. | 79 // Informs the browser of the result of a file open operation. |
| 80 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_FileOpenDone, | 80 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_FileOpenDone, |
| 81 bool, /* success */ | 81 bool, /* success */ |
| 82 string16) /* filename */ | 82 base::FilePath) /* filename */ |
| 83 | 83 |
| 84 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_MultiFileOpenDone, | 84 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_MultiFileOpenDone, |
| 85 bool, /* success */ | 85 bool, /* success */ |
| 86 std::vector<base::FilePath>) /* filenames */ | 86 std::vector<base::FilePath>) /* filenames */ |
| 87 | 87 |
| 88 // Informs the browser of the result of a select folder operation. |
| 89 IPC_MESSAGE_CONTROL2(MetroViewerHostMsg_SelectFolderDone, |
| 90 bool, /* success */ |
| 91 base::FilePath) /* filepath*/ |
| 88 | 92 |
| 89 // Messages sent from the browser to the viewer: | 93 // Messages sent from the browser to the viewer: |
| 90 | 94 |
| 91 // Requests the viewer to change the pointer to a new cursor. | 95 // Requests the viewer to change the pointer to a new cursor. |
| 92 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetCursor, | 96 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_SetCursor, |
| 93 int64 /* cursor */); | 97 int64 /* cursor */); |
| 94 | 98 |
| 95 // This structure contains the parameters sent to the viewer process to display | 99 // This structure contains the parameters sent to the viewer process to display |
| 96 // the file save dialog. | 100 // the file save dialog. |
| 97 IPC_STRUCT_BEGIN(MetroViewerHostMsg_SaveAsDialogParams) | 101 IPC_STRUCT_BEGIN(MetroViewerHostMsg_SaveAsDialogParams) |
| 98 | 102 |
| 99 // The title of the file save dialog if any. | 103 // The title of the file save dialog if any. |
| 100 IPC_STRUCT_MEMBER(string16, title) | 104 IPC_STRUCT_MEMBER(string16, title) |
| 101 | 105 |
| 102 // The suggested file name. | 106 // The suggested file name. |
| 103 IPC_STRUCT_MEMBER(string16, suggested_name) | 107 IPC_STRUCT_MEMBER(base::FilePath, suggested_name) |
| 104 | 108 |
| 105 // The save as filter to be used. | 109 // The save as filter to be used. |
| 106 IPC_STRUCT_MEMBER(string16, filter) | 110 IPC_STRUCT_MEMBER(string16, filter) |
| 107 | 111 |
| 108 // The filter index. | 112 // The filter index. |
| 109 IPC_STRUCT_MEMBER(uint32, filter_index) | 113 IPC_STRUCT_MEMBER(uint32, filter_index) |
| 110 | 114 |
| 111 // The default extension. | 115 // The default extension. |
| 112 IPC_STRUCT_MEMBER(string16, default_extension) | 116 IPC_STRUCT_MEMBER(string16, default_extension) |
| 113 | 117 |
| 114 IPC_STRUCT_END() | 118 IPC_STRUCT_END() |
| 115 | 119 |
| 116 // Requests the viewer to display the file save dialog. | 120 // Requests the viewer to display the file save dialog. |
| 117 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplayFileSaveAs, | 121 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplayFileSaveAs, |
| 118 MetroViewerHostMsg_SaveAsDialogParams) | 122 MetroViewerHostMsg_SaveAsDialogParams) |
| 119 | 123 |
| 120 // Requests the viewer to display the file open dialog. | 124 // Requests the viewer to display the file open dialog. |
| 121 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_DisplayFileOpen, | 125 IPC_MESSAGE_CONTROL4(MetroViewerHostMsg_DisplayFileOpen, |
| 122 string16, /* title */ | 126 string16, /* title */ |
| 123 string16, /* filter */ | 127 string16, /* filter */ |
| 124 string16, /* Default path */ | 128 base::FilePath, /* Default path */ |
| 125 bool) /* allow_multi_select */ | 129 bool) /* allow_multi_select */ |
| 126 | 130 |
| 131 // Requests the viewer to display the select folder dialog. |
| 132 IPC_MESSAGE_CONTROL1(MetroViewerHostMsg_DisplaySelectFolder, |
| 133 string16) /* title */ |
| OLD | NEW |