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

Side by Side Diff: ui/base/dragdrop/os_exchange_data.cc

Issue 135633002: Don't populate URL data in WebDropData when dragging files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Blink style enums Created 6 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.h » ('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 #include "ui/base/dragdrop/os_exchange_data.h" 5 #include "ui/base/dragdrop/os_exchange_data.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void OSExchangeData::SetPickledData(const CustomFormat& format, 56 void OSExchangeData::SetPickledData(const CustomFormat& format,
57 const Pickle& data) { 57 const Pickle& data) {
58 provider_->SetPickledData(format, data); 58 provider_->SetPickledData(format, data);
59 } 59 }
60 60
61 bool OSExchangeData::GetString(base::string16* data) const { 61 bool OSExchangeData::GetString(base::string16* data) const {
62 return provider_->GetString(data); 62 return provider_->GetString(data);
63 } 63 }
64 64
65 bool OSExchangeData::GetURLAndTitle(GURL* url, base::string16* title) const { 65 bool OSExchangeData::GetURLAndTitle(FilenameToURLPolicy policy,
66 return provider_->GetURLAndTitle(url, title); 66 GURL* url,
67 base::string16* title) const {
68 return provider_->GetURLAndTitle(policy, url, title);
67 } 69 }
68 70
69 bool OSExchangeData::GetFilename(base::FilePath* path) const { 71 bool OSExchangeData::GetFilename(base::FilePath* path) const {
70 return provider_->GetFilename(path); 72 return provider_->GetFilename(path);
71 } 73 }
72 74
73 bool OSExchangeData::GetFilenames( 75 bool OSExchangeData::GetFilenames(
74 std::vector<FileInfo>* filenames) const { 76 std::vector<FileInfo>* filenames) const {
75 return provider_->GetFilenames(filenames); 77 return provider_->GetFilenames(filenames);
76 } 78 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { 172 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) {
171 provider_->SetHtml(html, base_url); 173 provider_->SetHtml(html, base_url);
172 } 174 }
173 175
174 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const { 176 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const {
175 return provider_->GetHtml(html, base_url); 177 return provider_->GetHtml(html, base_url);
176 } 178 }
177 #endif 179 #endif
178 180
179 } // namespace ui 181 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data.h ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698