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 2014733003: Removing parsing of text from pasteboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moving url parsing up the hierarchy Created 4 years, 6 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const gfx::ImageSkia& GetDragImage() const override;
59 const gfx::Vector2d& GetDragImageOffset() const override; 59 const 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 string format and the string can be
65 // parsed as a URL.
66 bool GetPlainTextURL(GURL* url) const;
67
68 // Actual formats that have been set. See comment above |known_formats_| 64 // Actual formats that have been set. See comment above |known_formats_|
69 // for details. 65 // for details.
70 int formats_; 66 int formats_;
71 67
72 // String contents. 68 // String contents.
73 base::string16 string_; 69 base::string16 string_;
74 70
75 // URL contents. 71 // URL contents.
76 GURL url_; 72 GURL url_;
77 base::string16 title_; 73 base::string16 title_;
(...skipping 11 matching lines...) Expand all
89 // For HTML format 85 // For HTML format
90 base::string16 html_; 86 base::string16 html_;
91 GURL base_url_; 87 GURL base_url_;
92 88
93 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); 89 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
94 }; 90 };
95 91
96 } // namespace ui 92 } // namespace ui
97 93
98 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 94 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698