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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_aurax11.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_AURAX11_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void RetrieveTargets(std::vector<Atom>* targets) const; 56 void RetrieveTargets(std::vector<Atom>* targets) const;
57 57
58 // Makes a copy of the format map currently being offered. 58 // Makes a copy of the format map currently being offered.
59 SelectionFormatMap GetFormatMap() const; 59 SelectionFormatMap GetFormatMap() const;
60 60
61 const base::FilePath& file_contents_name() const { 61 const base::FilePath& file_contents_name() const {
62 return file_contents_name_; 62 return file_contents_name_;
63 } 63 }
64 64
65 // Overridden from OSExchangeData::Provider: 65 // Overridden from OSExchangeData::Provider:
66 Provider* Clone() const override; 66 std::unique_ptr<Provider> Clone() const override;
67 void MarkOriginatedFromRenderer() override; 67 void MarkOriginatedFromRenderer() override;
68 bool DidOriginateFromRenderer() const override; 68 bool DidOriginateFromRenderer() const override;
69 void SetString(const base::string16& data) override; 69 void SetString(const base::string16& data) override;
70 void SetURL(const GURL& url, const base::string16& title) override; 70 void SetURL(const GURL& url, const base::string16& title) override;
71 void SetFilename(const base::FilePath& path) override; 71 void SetFilename(const base::FilePath& path) override;
72 void SetFilenames(const std::vector<FileInfo>& filenames) override; 72 void SetFilenames(const std::vector<FileInfo>& filenames) override;
73 void SetPickledData(const Clipboard::FormatType& format, 73 void SetPickledData(const Clipboard::FormatType& format,
74 const base::Pickle& pickle) override; 74 const base::Pickle& pickle) override;
75 bool GetString(base::string16* data) const override; 75 bool GetString(base::string16* data) const override;
76 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, 76 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // Takes a snapshot of |format_map_| and offers it to other windows. 142 // Takes a snapshot of |format_map_| and offers it to other windows.
143 mutable SelectionOwner selection_owner_; 143 mutable SelectionOwner selection_owner_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); 145 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11);
146 }; 146 };
147 147
148 } // namespace ui 148 } // namespace ui
149 149
150 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ 150 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aura.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698