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

Side by Side Diff: third_party/WebKit/public/platform/WebDragData.h

Issue 2387113002: reflow comments in public/platform/ (Closed)
Patch Set: nit Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 41
42 template <typename T> 42 template <typename T>
43 class WebVector; 43 class WebVector;
44 44
45 // Holds data that may be exchanged through a drag-n-drop operation. It is 45 // Holds data that may be exchanged through a drag-n-drop operation. It is
46 // inexpensive to copy a WebDragData object. 46 // inexpensive to copy a WebDragData object.
47 class WebDragData { 47 class WebDragData {
48 public: 48 public:
49 struct Item { 49 struct Item {
50 enum StorageType { 50 enum StorageType {
51 // String data with an associated MIME type. Depending on the MIME type, t here may be 51 // String data with an associated MIME type. Depending on the MIME type,
52 // optional metadata attributes as well. 52 // there may be optional metadata attributes as well.
53 StorageTypeString, 53 StorageTypeString,
54 // Stores the name of one file being dragged into the renderer. 54 // Stores the name of one file being dragged into the renderer.
55 StorageTypeFilename, 55 StorageTypeFilename,
56 // An image being dragged out of the renderer. Contains a buffer holding t he image data 56 // An image being dragged out of the renderer. Contains a buffer holding
57 // as well as the suggested name for saving the image to. 57 // the image data as well as the suggested name for saving the image to.
58 StorageTypeBinaryData, 58 StorageTypeBinaryData,
59 // Stores the filesystem URL of one file being dragged into the renderer. 59 // Stores the filesystem URL of one file being dragged into the renderer.
60 StorageTypeFileSystemFile, 60 StorageTypeFileSystemFile,
61 }; 61 };
62 62
63 StorageType storageType; 63 StorageType storageType;
64 64
65 // Only valid when storageType == StorageTypeString. 65 // Only valid when storageType == StorageTypeString.
66 WebString stringType; 66 WebString stringType;
67 WebString stringData; 67 WebString stringData;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 private: 133 private:
134 bool m_valid; 134 bool m_valid;
135 WebVector<Item> m_itemList; 135 WebVector<Item> m_itemList;
136 int m_modifierKeyState; // State of Shift/Ctrl/Alt/Meta keys. 136 int m_modifierKeyState; // State of Shift/Ctrl/Alt/Meta keys.
137 WebString m_filesystemId; 137 WebString m_filesystemId;
138 }; 138 };
139 139
140 } // namespace blink 140 } // namespace blink
141 141
142 #endif 142 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebDistillability.h ('k') | third_party/WebKit/public/platform/WebEditingCommandType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698