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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void RetrieveTargets(std::vector<Atom>* targets) const; 54 void RetrieveTargets(std::vector<Atom>* targets) const;
55 55
56 // Makes a copy of the format map currently being offered. 56 // Makes a copy of the format map currently being offered.
57 SelectionFormatMap GetFormatMap() const; 57 SelectionFormatMap GetFormatMap() const;
58 58
59 const base::FilePath& file_contents_name() const { 59 const base::FilePath& file_contents_name() const {
60 return file_contents_name_; 60 return file_contents_name_;
61 } 61 }
62 62
63 // Overridden from OSExchangeData::Provider: 63 // Overridden from OSExchangeData::Provider:
64 virtual Provider* Clone() const OVERRIDE; 64 virtual Provider* Clone() const override;
65 virtual void MarkOriginatedFromRenderer() OVERRIDE; 65 virtual void MarkOriginatedFromRenderer() override;
66 virtual bool DidOriginateFromRenderer() const OVERRIDE; 66 virtual bool DidOriginateFromRenderer() const override;
67 virtual void SetString(const base::string16& data) OVERRIDE; 67 virtual void SetString(const base::string16& data) override;
68 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; 68 virtual void SetURL(const GURL& url, const base::string16& title) override;
69 virtual void SetFilename(const base::FilePath& path) OVERRIDE; 69 virtual void SetFilename(const base::FilePath& path) override;
70 virtual void SetFilenames(const std::vector<FileInfo>& filenames) OVERRIDE; 70 virtual void SetFilenames(const std::vector<FileInfo>& filenames) override;
71 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, 71 virtual void SetPickledData(const OSExchangeData::CustomFormat& format,
72 const Pickle& pickle) OVERRIDE; 72 const Pickle& pickle) override;
73 virtual bool GetString(base::string16* data) const OVERRIDE; 73 virtual bool GetString(base::string16* data) const override;
74 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, 74 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
75 GURL* url, 75 GURL* url,
76 base::string16* title) const OVERRIDE; 76 base::string16* title) const override;
77 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; 77 virtual bool GetFilename(base::FilePath* path) const override;
78 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const OVERRIDE; 78 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const override;
79 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, 79 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format,
80 Pickle* pickle) const OVERRIDE; 80 Pickle* pickle) const override;
81 virtual bool HasString() const OVERRIDE; 81 virtual bool HasString() const override;
82 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const 82 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const
83 OVERRIDE; 83 override;
84 virtual bool HasFile() const OVERRIDE; 84 virtual bool HasFile() const override;
85 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const 85 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const
86 OVERRIDE; 86 override;
87 87
88 virtual void SetFileContents(const base::FilePath& filename, 88 virtual void SetFileContents(const base::FilePath& filename,
89 const std::string& file_contents) OVERRIDE; 89 const std::string& file_contents) override;
90 90
91 virtual void SetHtml(const base::string16& html, 91 virtual void SetHtml(const base::string16& html,
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 uint32_t DispatchEvent(const PlatformEvent& event) override;
103 103
104 private: 104 private:
105 friend class OSExchangeDataProviderAuraX11Test; 105 friend class OSExchangeDataProviderAuraX11Test;
106 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData; 106 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData;
107 107
108 // Returns true if |formats_| contains a string format and the string can be 108 // Returns true if |formats_| contains a string format and the string can be
109 // parsed as a URL. 109 // parsed as a URL.
110 bool GetPlainTextURL(GURL* url) const; 110 bool GetPlainTextURL(GURL* url) const;
111 111
112 // Returns the targets in |format_map_|. 112 // Returns the targets in |format_map_|.
(...skipping 29 matching lines...) Expand all
142 142
143 // Takes a snapshot of |format_map_| and offers it to other windows. 143 // Takes a snapshot of |format_map_| and offers it to other windows.
144 mutable SelectionOwner selection_owner_; 144 mutable SelectionOwner selection_owner_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11); 146 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAuraX11);
147 }; 147 };
148 148
149 } // namespace ui 149 } // namespace ui
150 150
151 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_ 151 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURAX11_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aura.h ('k') | ui/base/dragdrop/os_exchange_data_provider_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698