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

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

Issue 3219002: FBTF: Move code from headers into cc files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
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
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 25 // Construct with a given drag identity. Note: identity is an int32 because
26 // it is passed over the renderer NPAPI interface to gears. 26 // it is passed over the renderer NPAPI interface to gears.
27 explicit WebDropData(int32 drag_identity) : identity(drag_identity) {} 27 explicit WebDropData(int32 drag_identity);
28 28
29 // Construct from a WebDragData object. 29 // Construct from a WebDragData object.
30 explicit WebDropData(const WebKit::WebDragData&); 30 explicit WebDropData(const WebKit::WebDragData&);
31 31
32 // For default constructions, use drag |identity| 0. 32 // For default constructions, use drag |identity| 0.
33 WebDropData() : identity(0) {} 33 WebDropData();
34
35 ~WebDropData();
34 36
35 int32 identity; 37 int32 identity;
36 38
37 // User is dragging a link into the webview. 39 // User is dragging a link into the webview.
38 GURL url; 40 GURL url;
39 string16 url_title; // The title associated with |url|. 41 string16 url_title; // The title associated with |url|.
40 42
41 // User is dragging a link out-of the webview. 43 // User is dragging a link out-of the webview.
42 string16 download_metadata; 44 string16 download_metadata;
43 45
(...skipping 20 matching lines...) Expand all
64 WebKit::WebDragData ToDragData() const; 66 WebKit::WebDragData ToDragData() const;
65 67
66 // Helper method for converting Window's specific IDataObject to a WebDropData 68 // Helper method for converting Window's specific IDataObject to a WebDropData
67 // object. TODO(tc): Move this to the browser side since it's Windows 69 // object. TODO(tc): Move this to the browser side since it's Windows
68 // specific and no longer used in webkit. 70 // specific and no longer used in webkit.
69 static void PopulateWebDropData(IDataObject* data_object, 71 static void PopulateWebDropData(IDataObject* data_object,
70 WebDropData* drop_data); 72 WebDropData* drop_data);
71 }; 73 };
72 74
73 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ 75 #endif // WEBKIT_GLUE_WEBDROPDATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698