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

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

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)
Patch Set: ashdrag: addheaders Created 3 years, 8 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool HasCustomFormat(const Clipboard::FormatType& format) const override; 86 bool HasCustomFormat(const Clipboard::FormatType& format) const override;
87 87
88 void SetFileContents(const base::FilePath& filename, 88 void SetFileContents(const base::FilePath& filename,
89 const std::string& file_contents) override; 89 const std::string& file_contents) override;
90 90
91 void SetHtml(const base::string16& html, const GURL& base_url) override; 91 void SetHtml(const base::string16& html, const GURL& base_url) override;
92 bool GetHtml(base::string16* html, GURL* base_url) const override; 92 bool GetHtml(base::string16* html, GURL* base_url) const override;
93 bool HasHtml() const override; 93 bool HasHtml() const override;
94 void SetDragImage(const gfx::ImageSkia& image, 94 void SetDragImage(const gfx::ImageSkia& image,
95 const gfx::Vector2d& cursor_offset) override; 95 const gfx::Vector2d& cursor_offset) override;
96 const gfx::ImageSkia& GetDragImage() const override; 96 gfx::ImageSkia GetDragImage() const override;
97 const gfx::Vector2d& GetDragImageOffset() const override; 97 gfx::Vector2d GetDragImageOffset() const override;
98 98
99 // ui::PlatformEventDispatcher: 99 // ui::PlatformEventDispatcher:
100 bool CanDispatchEvent(const PlatformEvent& event) override; 100 bool CanDispatchEvent(const PlatformEvent& event) override;
101 uint32_t DispatchEvent(const PlatformEvent& event) override; 101 uint32_t DispatchEvent(const PlatformEvent& event) override;
102 102
103 private: 103 private:
104 friend class OSExchangeDataProviderAuraX11Test; 104 friend class OSExchangeDataProviderAuraX11Test;
105 typedef std::map<Clipboard::FormatType, base::Pickle> PickleData; 105 typedef std::map<Clipboard::FormatType, base::Pickle> PickleData;
106 106
107 // Returns true if |formats_| contains a string format and the string can be 107 // Returns true if |formats_| contains a string format and the string can be
(...skipping 33 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

Powered by Google App Engine
This is Rietveld 408576698