| 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 <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const GURL& base_url) override; | 92 const GURL& base_url) override; |
| 93 virtual bool GetHtml(base::string16* html, GURL* base_url) const override; | 93 virtual bool GetHtml(base::string16* html, GURL* base_url) const override; |
| 94 virtual bool HasHtml() const override; | 94 virtual bool HasHtml() const override; |
| 95 virtual void SetDragImage(const gfx::ImageSkia& image, | 95 virtual void SetDragImage(const gfx::ImageSkia& image, |
| 96 const gfx::Vector2d& cursor_offset) override; | 96 const gfx::Vector2d& cursor_offset) override; |
| 97 virtual const gfx::ImageSkia& GetDragImage() const override; | 97 virtual const gfx::ImageSkia& GetDragImage() const override; |
| 98 virtual const gfx::Vector2d& GetDragImageOffset() const override; | 98 virtual const gfx::Vector2d& GetDragImageOffset() const override; |
| 99 | 99 |
| 100 // ui::PlatformEventDispatcher: | 100 // ui::PlatformEventDispatcher: |
| 101 virtual bool CanDispatchEvent(const PlatformEvent& event) override; | 101 virtual bool CanDispatchEvent(const PlatformEvent& event) override; |
| 102 virtual uint32_t DispatchEvent(const PlatformEvent& event) override; | 102 virtual ui::PostDispatchAction DispatchEvent( |
| 103 const PlatformEvent& event) override; |
| 103 | 104 |
| 104 private: | 105 private: |
| 105 friend class OSExchangeDataProviderAuraX11Test; | 106 friend class OSExchangeDataProviderAuraX11Test; |
| 106 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData; | 107 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData; |
| 107 | 108 |
| 108 // Returns true if |formats_| contains a string format and the string can be | 109 // Returns true if |formats_| contains a string format and the string can be |
| 109 // parsed as a URL. | 110 // parsed as a URL. |
| 110 bool GetPlainTextURL(GURL* url) const; | 111 bool GetPlainTextURL(GURL* url) const; |
| 111 | 112 |
| 112 // Returns the targets in |format_map_|. | 113 // Returns the targets in |format_map_|. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 142 | 143 |
| 143 // Takes a snapshot of |format_map_| and offers it to other windows. | 144 // Takes a snapshot of |format_map_| and offers it to other windows. |
| 144 mutable SelectionOwner selection_owner_; | 145 mutable SelectionOwner selection_owner_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); | 147 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace ui | 150 } // namespace ui |
| 150 | 151 |
| 151 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ | 152 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ |
| OLD | NEW |