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

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

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)
Patch Set: ashdrag: addheaders Created 3 years, 8 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) 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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; 48 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override;
49 bool HasFile() const override; 49 bool HasFile() const override;
50 bool HasCustomFormat(const Clipboard::FormatType& format) const 50 bool HasCustomFormat(const Clipboard::FormatType& format) const
51 override; 51 override;
52 52
53 void SetHtml(const base::string16& html, const GURL& base_url) override; 53 void SetHtml(const base::string16& html, const GURL& base_url) override;
54 bool GetHtml(base::string16* html, GURL* base_url) const override; 54 bool GetHtml(base::string16* html, GURL* base_url) const override;
55 bool HasHtml() const override; 55 bool HasHtml() const override;
56 void SetDragImage(const gfx::ImageSkia& image, 56 void SetDragImage(const gfx::ImageSkia& image,
57 const gfx::Vector2d& cursor_offset) override; 57 const gfx::Vector2d& cursor_offset) override;
58 const gfx::ImageSkia& GetDragImage() const override; 58 gfx::ImageSkia GetDragImage() const override;
59 const gfx::Vector2d& GetDragImageOffset() const override; 59 gfx::Vector2d GetDragImageOffset() const override;
60 60
61 private: 61 private:
62 typedef std::map<Clipboard::FormatType, base::Pickle> PickleData; 62 typedef std::map<Clipboard::FormatType, base::Pickle> PickleData;
63 63
64 // Returns true if |formats_| contains a file format and the file name can be 64 // Returns true if |formats_| contains a file format and the file name can be
65 // parsed as a URL. 65 // parsed as a URL.
66 bool GetFileURL(GURL* url) const; 66 bool GetFileURL(GURL* url) const;
67 67
68 // 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
69 // parsed as a URL. 69 // parsed as a URL.
(...skipping 23 matching lines...) Expand all
93 // For HTML format 93 // For HTML format
94 base::string16 html_; 94 base::string16 html_;
95 GURL base_url_; 95 GURL base_url_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); 97 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
98 }; 98 };
99 99
100 } // namespace ui 100 } // namespace ui
101 101
102 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 102 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698