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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_android.h

Issue 1728193002: Support dragging texts into Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/dragdrop/os_exchange_data_provider_android.h
diff --git a/ui/base/dragdrop/os_exchange_data_provider_mac.h b/ui/base/dragdrop/os_exchange_data_provider_android.h
similarity index 68%
copy from ui/base/dragdrop/os_exchange_data_provider_mac.h
copy to ui/base/dragdrop/os_exchange_data_provider_android.h
index c619ab9d806b49f6fc93bb436215f221e233efc8..20ee8b769516dad7f6239eb95a41f41f552ba503 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_mac.h
+++ b/ui/base/dragdrop/os_exchange_data_provider_android.h
@@ -1,25 +1,27 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
-#define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
+#ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_ANDROID_H_
+#define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_ANDROID_H_
-#import "base/mac/scoped_nsobject.h"
+#include "base/files/file_path.h"
#include "base/macros.h"
+#include "base/pickle.h"
#include "ui/base/dragdrop/os_exchange_data.h"
-
-@class NSPasteboard;
+#include "ui/gfx/geometry/vector2d.h"
+#include "url/gurl.h"
namespace ui {
-// OSExchangeData::Provider implementation for Mac.
-class UI_BASE_EXPORT OSExchangeDataProviderMac
+class Clipboard;
+
+// OSExchangeData::Provider implementation for Android.
+class UI_BASE_EXPORT OSExchangeDataProviderAndroid
: public OSExchangeData::Provider {
public:
- OSExchangeDataProviderMac();
- explicit OSExchangeDataProviderMac(NSPasteboard* pasteboard);
- ~OSExchangeDataProviderMac() override;
+ OSExchangeDataProviderAndroid();
+ ~OSExchangeDataProviderAndroid() override;
// Overridden from OSExchangeData::Provider:
Provider* Clone() const override;
@@ -45,11 +47,12 @@ class UI_BASE_EXPORT OSExchangeDataProviderMac
bool HasCustomFormat(const Clipboard::FormatType& format) const override;
private:
- base::scoped_nsobject<NSPasteboard> pasteboard_;
+ // String contents.
+ base::string16 string_;
- DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac);
+ DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAndroid);
};
} // namespace ui
-#endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
+#endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698