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

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

Issue 667823002: PlatformEventDispatcher::DispatchEvent() should return a PostDispatchAction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui_enums
Patch Set: Fix platform_event_source_unittest.cc Created 6 years, 2 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 <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
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
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_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_aurax11.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