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

Side by Side Diff: webkit/glue/webdropdata.h

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 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
« no previous file with comments | « webkit/extensions/v8/gears_extension.cc ('k') | webkit/glue/webdropdata.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // A struct for managing data being dropped on a webview. This represents a 5 // A struct for managing data being dropped on a webview. This represents a
6 // union of all the types of data that can be dropped in a platform neutral 6 // union of all the types of data that can be dropped in a platform neutral
7 // way. 7 // way.
8 8
9 #ifndef WEBKIT_GLUE_WEBDROPDATA_H_ 9 #ifndef WEBKIT_GLUE_WEBDROPDATA_H_
10 #define WEBKIT_GLUE_WEBDROPDATA_H_ 10 #define WEBKIT_GLUE_WEBDROPDATA_H_
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 17
18 struct IDataObject; 18 struct IDataObject;
19 19
20 namespace WebKit { 20 namespace WebKit {
21 class WebDragData; 21 class WebDragData;
22 } 22 }
23 23
24 struct WebDropData { 24 struct WebDropData {
25 // Construct with a given drag identity. Note: identity is an int32 because
26 // it is passed over the renderer NPAPI interface to gears.
27 explicit WebDropData(int32 drag_identity);
28
29 // Construct from a WebDragData object. 25 // Construct from a WebDragData object.
30 explicit WebDropData(const WebKit::WebDragData&); 26 explicit WebDropData(const WebKit::WebDragData&);
31 27
32 // For default constructions, use drag |identity| 0.
33 WebDropData(); 28 WebDropData();
34 29
35 ~WebDropData(); 30 ~WebDropData();
36 31
37 int32 identity;
38
39 // User is dragging a link into the webview. 32 // User is dragging a link into the webview.
40 GURL url; 33 GURL url;
41 string16 url_title; // The title associated with |url|. 34 string16 url_title; // The title associated with |url|.
42 35
43 // User is dragging a link out-of the webview. 36 // User is dragging a link out-of the webview.
44 string16 download_metadata; 37 string16 download_metadata;
45 38
46 // File extension for dragging images from a webview to the desktop. 39 // File extension for dragging images from a webview to the desktop.
47 string16 file_extension; 40 string16 file_extension;
48 41
(...skipping 17 matching lines...) Expand all
66 WebKit::WebDragData ToDragData() const; 59 WebKit::WebDragData ToDragData() const;
67 60
68 // Helper method for converting Window's specific IDataObject to a WebDropData 61 // Helper method for converting Window's specific IDataObject to a WebDropData
69 // object. TODO(tc): Move this to the browser side since it's Windows 62 // object. TODO(tc): Move this to the browser side since it's Windows
70 // specific and no longer used in webkit. 63 // specific and no longer used in webkit.
71 static void PopulateWebDropData(IDataObject* data_object, 64 static void PopulateWebDropData(IDataObject* data_object,
72 WebDropData* drop_data); 65 WebDropData* drop_data);
73 }; 66 };
74 67
75 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ 68 #endif // WEBKIT_GLUE_WEBDROPDATA_H_
OLDNEW
« no previous file with comments | « webkit/extensions/v8/gears_extension.cc ('k') | webkit/glue/webdropdata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698