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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_mac.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MAC_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #import "ui/base/clipboard/clipboard_util_mac.h" 10 #import "ui/base/clipboard/clipboard_util_mac.h"
(...skipping 10 matching lines...) Expand all
21 class UniquePasteboard; 21 class UniquePasteboard;
22 22
23 // OSExchangeData::Provider implementation for Mac. 23 // OSExchangeData::Provider implementation for Mac.
24 class UI_BASE_EXPORT OSExchangeDataProviderMac 24 class UI_BASE_EXPORT OSExchangeDataProviderMac
25 : public OSExchangeData::Provider { 25 : public OSExchangeData::Provider {
26 public: 26 public:
27 OSExchangeDataProviderMac(); 27 OSExchangeDataProviderMac();
28 ~OSExchangeDataProviderMac() override; 28 ~OSExchangeDataProviderMac() override;
29 29
30 // Overridden from OSExchangeData::Provider: 30 // Overridden from OSExchangeData::Provider:
31 Provider* Clone() const override; 31 std::unique_ptr<Provider> Clone() const override;
32 void MarkOriginatedFromRenderer() override; 32 void MarkOriginatedFromRenderer() override;
33 bool DidOriginateFromRenderer() const override; 33 bool DidOriginateFromRenderer() const override;
34 void SetString(const base::string16& data) override; 34 void SetString(const base::string16& data) override;
35 void SetURL(const GURL& url, const base::string16& title) override; 35 void SetURL(const GURL& url, const base::string16& title) override;
36 void SetFilename(const base::FilePath& path) override; 36 void SetFilename(const base::FilePath& path) override;
37 void SetFilenames(const std::vector<FileInfo>& filenames) override; 37 void SetFilenames(const std::vector<FileInfo>& filenames) override;
38 void SetPickledData(const Clipboard::FormatType& format, 38 void SetPickledData(const Clipboard::FormatType& format,
39 const base::Pickle& data) override; 39 const base::Pickle& data) override;
40 bool GetString(base::string16* data) const override; 40 bool GetString(base::string16* data) const override;
41 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, 41 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
(...skipping 30 matching lines...) Expand all
72 // Drag image and offset data. 72 // Drag image and offset data.
73 gfx::ImageSkia drag_image_; 73 gfx::ImageSkia drag_image_;
74 gfx::Vector2d cursor_offset_; 74 gfx::Vector2d cursor_offset_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac); 76 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderMac);
77 }; 77 };
78 78
79 } // namespace ui 79 } // namespace ui
80 80
81 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_ 81 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_MAC_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_factory.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698