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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_aura.h

Issue 11787005: Get drag and drop working on Win Ash. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and take out dcheck for win Created 7 years, 11 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 | « ui/base/dragdrop/os_exchange_data.h ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual bool GetFileContents(FilePath* filename, 50 virtual bool GetFileContents(FilePath* filename,
51 std::string* file_contents) const OVERRIDE; 51 std::string* file_contents) const OVERRIDE;
52 virtual bool HasFileContents() const OVERRIDE; 52 virtual bool HasFileContents() const OVERRIDE;
53 virtual void SetDownloadFileInfo( 53 virtual void SetDownloadFileInfo(
54 const OSExchangeData::DownloadFileInfo& download) OVERRIDE; 54 const OSExchangeData::DownloadFileInfo& download) OVERRIDE;
55 #endif 55 #endif
56 56
57 virtual void SetHtml(const string16& html, const GURL& base_url) OVERRIDE; 57 virtual void SetHtml(const string16& html, const GURL& base_url) OVERRIDE;
58 virtual bool GetHtml(string16* html, GURL* base_url) const OVERRIDE; 58 virtual bool GetHtml(string16* html, GURL* base_url) const OVERRIDE;
59 virtual bool HasHtml() const OVERRIDE; 59 virtual bool HasHtml() const OVERRIDE;
60 60 virtual void SetDragImage(const gfx::ImageSkia& image,
61 void set_drag_image(const gfx::ImageSkia& drag_image) { 61 const gfx::Vector2d& cursor_offset) OVERRIDE;
62 drag_image_ = drag_image; 62 virtual const gfx::ImageSkia& GetDragImage() const OVERRIDE;
63 } 63 virtual const gfx::Vector2d& GetDragImageOffset() const OVERRIDE;
64
65 const gfx::ImageSkia& drag_image() const { return drag_image_; }
66 void set_drag_image_offset(const gfx::Vector2d& drag_image_offset) {
67 drag_image_offset_ = drag_image_offset;
68 }
69 const gfx::Vector2d& drag_image_offset() const { return drag_image_offset_; }
70 64
71 private: 65 private:
72 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData; 66 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData;
73 67
74 // Returns true if |formats_| contains a string format and the string can be 68 // Returns true if |formats_| contains a string format and the string can be
75 // parsed as a URL. 69 // parsed as a URL.
76 bool GetPlainTextURL(GURL* url) const; 70 bool GetPlainTextURL(GURL* url) const;
77 71
78 // Actual formats that have been set. See comment above |known_formats_| 72 // Actual formats that have been set. See comment above |known_formats_|
79 // for details. 73 // for details.
(...skipping 19 matching lines...) Expand all
99 // For HTML format 93 // For HTML format
100 string16 html_; 94 string16 html_;
101 GURL base_url_; 95 GURL base_url_;
102 96
103 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); 97 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
104 }; 98 };
105 99
106 } // namespace ui 100 } // namespace ui
107 101
108 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 102 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data.h ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698