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

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

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/dragdrop/os_exchange_data_provider_android.h"
6
7 namespace ui {
dcheng 2016/02/25 01:18:49 Nit: newline after this
hush (inactive) 2016/02/25 02:40:48 Done.
8 OSExchangeDataProviderAndroid::OSExchangeDataProviderAndroid() {}
9
10 OSExchangeDataProviderAndroid::~OSExchangeDataProviderAndroid() {}
11
12 OSExchangeData::Provider* OSExchangeDataProviderAndroid::Clone() const {
13 OSExchangeDataProviderAndroid* provider = new OSExchangeDataProviderAndroid();
14 provider->string_ = string_;
15
16 return provider;
17 }
18
19 void OSExchangeDataProviderAndroid::MarkOriginatedFromRenderer() {
20 // no-op.
21 }
22
23 bool OSExchangeDataProviderAndroid::DidOriginateFromRenderer() const {
24 return false;
25 }
26
27 void OSExchangeDataProviderAndroid::SetString(const base::string16& string) {
28 string_ = string;
29 }
30
31 void OSExchangeDataProviderAndroid::SetURL(const GURL& url,
32 const base::string16& title) {
33 // no op
34 }
35
36 void OSExchangeDataProviderAndroid::SetFilename(const base::FilePath& path) {
37 // no op
38 }
39
40 void OSExchangeDataProviderAndroid::SetFilenames(
41 const std::vector<ui::FileInfo>& filenames) {
42 // no op
43 }
44
45 void OSExchangeDataProviderAndroid::SetPickledData(
46 const ui::Clipboard::FormatType& format,
47 const base::Pickle& pickle) {
48 // no op.
49 }
50
51 bool OSExchangeDataProviderAndroid::GetString(base::string16* string) const {
52 *string = string_;
53 return string_.size() > 0;
54 }
55
56 bool OSExchangeDataProviderAndroid::GetURLAndTitle(
57 ui::OSExchangeData::FilenameToURLPolicy policy,
58 GURL* url,
59 base::string16* title) const {
60 return false;
61 }
62
63 bool OSExchangeDataProviderAndroid::GetFilename(base::FilePath* path) const {
64 return false;
65 }
66
67 bool OSExchangeDataProviderAndroid::GetFilenames(
68 std::vector<ui::FileInfo>* filenames) const {
69 return false;
70 }
71
72 bool OSExchangeDataProviderAndroid::GetPickledData(
73 const ui::Clipboard::FormatType& format,
74 base::Pickle* pickle) const {
75 return false;
76 }
77
78 bool OSExchangeDataProviderAndroid::HasString() const {
79 return string_.size() > 0;
80 }
81
82 bool OSExchangeDataProviderAndroid::HasURL(
83 ui::OSExchangeData::FilenameToURLPolicy policy) const {
84 return false;
85 }
86
87 bool OSExchangeDataProviderAndroid::HasFile() const {
88 return false;
89 }
90
91 bool OSExchangeDataProviderAndroid::HasCustomFormat(
92 const ui::Clipboard::FormatType& format) const {
93 return false;
94 }
95
96 // static
97 OSExchangeData::Provider* OSExchangeData::CreateProvider() {
98 return new OSExchangeDataProviderAndroid();
99 }
100 }
sky 2016/02/25 01:06:26 nit: newline between 99/100 and add // namespace
hush (inactive) 2016/02/25 02:40:48 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698