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

Side by Side Diff: chrome/common/render_messages_params.h

Issue 3311016: Support accept attribute for an <input type=file> element.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 }; 768 };
769 769
770 Mode mode; 770 Mode mode;
771 771
772 // Title to be used for the dialog. This may be empty for the default title, 772 // Title to be used for the dialog. This may be empty for the default title,
773 // which will be either "Open" or "Save" depending on the mode. 773 // which will be either "Open" or "Save" depending on the mode.
774 string16 title; 774 string16 title;
775 775
776 // Default file name to select in the dialog. 776 // Default file name to select in the dialog.
777 FilePath default_file_name; 777 FilePath default_file_name;
778
779 // A comma-separated MIME types such as "audio/*,text/plain", that is used
780 // to restrict selectable files to such types.
781 string16 accept_types;
778 }; 782 };
779 783
780 struct ViewMsg_ExtensionRendererInfo { 784 struct ViewMsg_ExtensionRendererInfo {
781 std::string id; 785 std::string id;
782 ExtensionExtent web_extent; 786 ExtensionExtent web_extent;
783 std::string name; 787 std::string name;
784 GURL icon_url; 788 GURL icon_url;
785 Extension::Location location; 789 Extension::Location location;
786 }; 790 };
787 791
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry> { 1128 struct ParamTraits<ViewMsg_FileSystem_DidReadDirectory_Params::Entry> {
1125 typedef ViewMsg_FileSystem_DidReadDirectory_Params::Entry param_type; 1129 typedef ViewMsg_FileSystem_DidReadDirectory_Params::Entry param_type;
1126 static void Write(Message* m, const param_type& p); 1130 static void Write(Message* m, const param_type& p);
1127 static bool Read(const Message* m, void** iter, param_type* p); 1131 static bool Read(const Message* m, void** iter, param_type* p);
1128 static void Log(const param_type& p, std::string* l); 1132 static void Log(const param_type& p, std::string* l);
1129 }; 1133 };
1130 1134
1131 } // namespace IPC 1135 } // namespace IPC
1132 1136
1133 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ 1137 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698