| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |