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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 string16) /* 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 string16) /* filepath*/ | |
palmer
2013/04/18 22:58:08
This, and the others, should really be base::FileP
ananta
2013/04/19 00:23:24
I changed all the IPCs to take in FilePaths.
| |
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) |
(...skipping 19 matching lines...) Expand all Loading... | |
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 string16, /* 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 |