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

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

Issue 2179813003: Allow OSExchangeData::Provider to be overridden at run time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac + win Created 4 years, 4 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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "ui/base/dragdrop/os_exchange_data.h" 13 #include "ui/base/dragdrop/os_exchange_data.h"
14 #include "ui/gfx/geometry/vector2d.h" 14 #include "ui/gfx/geometry/vector2d.h"
15 #include "ui/gfx/image/image_skia.h" 15 #include "ui/gfx/image/image_skia.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class Clipboard; 20 class Clipboard;
21 21
22 // OSExchangeData::Provider implementation for aura on linux. 22 // OSExchangeData::Provider implementation for aura on linux.
23 class UI_BASE_EXPORT OSExchangeDataProviderAura 23 class UI_BASE_EXPORT OSExchangeDataProviderAura
24 : public OSExchangeData::Provider { 24 : public OSExchangeData::Provider {
25 public: 25 public:
26 OSExchangeDataProviderAura(); 26 OSExchangeDataProviderAura();
27 ~OSExchangeDataProviderAura() override; 27 ~OSExchangeDataProviderAura() override;
28 28
29 // Overridden from OSExchangeData::Provider: 29 // Overridden from OSExchangeData::Provider:
30 Provider* Clone() const override; 30 std::unique_ptr<Provider> Clone() const override;
31 void MarkOriginatedFromRenderer() override; 31 void MarkOriginatedFromRenderer() override;
32 bool DidOriginateFromRenderer() const override; 32 bool DidOriginateFromRenderer() const override;
33 void SetString(const base::string16& data) override; 33 void SetString(const base::string16& data) override;
34 void SetURL(const GURL& url, const base::string16& title) override; 34 void SetURL(const GURL& url, const base::string16& title) override;
35 void SetFilename(const base::FilePath& path) override; 35 void SetFilename(const base::FilePath& path) override;
36 void SetFilenames(const std::vector<FileInfo>& filenames) override; 36 void SetFilenames(const std::vector<FileInfo>& filenames) override;
37 void SetPickledData(const Clipboard::FormatType& format, 37 void SetPickledData(const Clipboard::FormatType& format,
38 const base::Pickle& data) override; 38 const base::Pickle& data) override;
39 bool GetString(base::string16* data) const override; 39 bool GetString(base::string16* data) const override;
40 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, 40 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « ui/base/dragdrop/os_exchange_data.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698