| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/history/history.h" | 10 #include "chrome/browser/history/history.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Writes this BookmarkDragData to data. If BookmarkDragData is a URL, | 38 // Writes this BookmarkDragData to data. If BookmarkDragData is a URL, |
| 39 // this writes out the URL and URL title clipboard data as well. | 39 // this writes out the URL and URL title clipboard data as well. |
| 40 void Write(Profile* profile, OSExchangeData* data) const; | 40 void Write(Profile* profile, OSExchangeData* data) const; |
| 41 | 41 |
| 42 // Restores this data from the clipboard, returning true on success. | 42 // Restores this data from the clipboard, returning true on success. |
| 43 bool Read(const OSExchangeData& data); | 43 bool Read(const OSExchangeData& data); |
| 44 | 44 |
| 45 // Returns the node represented by this DragData. If this DragData was created | 45 // Returns the node represented by this DragData. If this DragData was created |
| 46 // from the same profile then the node from the model is returned. If the | 46 // from the same profile then the node from the model is returned. If the |
| 47 // node can't be found (may have been deleted), NULL is returned. | 47 // node can't be found (may have been deleted), NULL is returned. |
| 48 BookmarkNode* BookmarkDragData::GetNode(Profile* profile) const; | 48 BookmarkNode* GetNode(Profile* profile) const; |
| 49 | 49 |
| 50 // If true, this entry represents a StarredEntry of type URL. | 50 // If true, this entry represents a StarredEntry of type URL. |
| 51 bool is_url; | 51 bool is_url; |
| 52 | 52 |
| 53 // The URL, only valid if is_url is true. | 53 // The URL, only valid if is_url is true. |
| 54 GURL url; | 54 GURL url; |
| 55 | 55 |
| 56 // Title of the entry | 56 // Title of the entry |
| 57 std::wstring title; | 57 std::wstring title; |
| 58 | 58 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 74 // Path of the profile we originated from. | 74 // Path of the profile we originated from. |
| 75 // This is only saved for the root node. | 75 // This is only saved for the root node. |
| 76 std::wstring profile_path_; | 76 std::wstring profile_path_; |
| 77 | 77 |
| 78 // ID (node->id()) of the node this BookmarkDragData was created from. | 78 // ID (node->id()) of the node this BookmarkDragData was created from. |
| 79 // This is only saved for the root node. | 79 // This is only saved for the root node. |
| 80 int id_; | 80 int id_; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ | 83 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_DRAG_DATA_ |
| OLD | NEW |