OLD | NEW |
1 // Copyright (c) 2006-2008 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_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/file_path.h" |
11 #include "base/string16.h" | 12 #include "base/string16.h" |
12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
13 | 14 |
14 // TODO(port): Port this file. | 15 // TODO(port): Port this file. |
15 #if defined(TOOLKIT_VIEWS) | 16 #if defined(TOOLKIT_VIEWS) |
16 #include "app/os_exchange_data.h" | 17 #include "app/os_exchange_data.h" |
17 #else | 18 #else |
18 #include "chrome/common/temp_scaffolding_stubs.h" | 19 #include "chrome/common/temp_scaffolding_stubs.h" |
19 #endif | 20 #endif |
20 | 21 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool IsFromProfile(Profile* profile) const; | 135 bool IsFromProfile(Profile* profile) const; |
135 | 136 |
136 // The actual elements written to the clipboard. | 137 // The actual elements written to the clipboard. |
137 std::vector<Element> elements; | 138 std::vector<Element> elements; |
138 | 139 |
139 // The MIME type for the clipboard format for BookmarkDragData. | 140 // The MIME type for the clipboard format for BookmarkDragData. |
140 static const char* kClipboardFormatString; | 141 static const char* kClipboardFormatString; |
141 | 142 |
142 private: | 143 private: |
143 // Path of the profile we originated from. | 144 // Path of the profile we originated from. |
144 #if defined(WCHAR_T_IS_UTF16) | 145 FilePath::StringType profile_path_; |
145 std::wstring profile_path_; | |
146 #elif defined(WCHAR_T_IS_UTF32) | |
147 std::string profile_path_; | |
148 #endif | |
149 }; | 146 }; |
150 | 147 |
151 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ | 148 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_H_ |
OLD | NEW |