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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_aura.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
« no previous file with comments | « ui/base/dragdrop/drag_utils.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aurax11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AURA_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "ui/base/dragdrop/os_exchange_data.h" 12 #include "ui/base/dragdrop/os_exchange_data.h"
13 #include "ui/gfx/image/image_skia.h" 13 #include "ui/gfx/image/image_skia.h"
14 #include "ui/gfx/vector2d.h" 14 #include "ui/gfx/vector2d.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class Clipboard; 19 class Clipboard;
20 20
21 // OSExchangeData::Provider implementation for aura on linux. 21 // OSExchangeData::Provider implementation for aura on linux.
22 class UI_BASE_EXPORT OSExchangeDataProviderAura 22 class UI_BASE_EXPORT OSExchangeDataProviderAura
23 : public OSExchangeData::Provider { 23 : public OSExchangeData::Provider {
24 public: 24 public:
25 OSExchangeDataProviderAura(); 25 OSExchangeDataProviderAura();
26 virtual ~OSExchangeDataProviderAura(); 26 virtual ~OSExchangeDataProviderAura();
27 27
28 // Overridden from OSExchangeData::Provider: 28 // Overridden from OSExchangeData::Provider:
29 virtual Provider* Clone() const OVERRIDE; 29 virtual Provider* Clone() const override;
30 virtual void MarkOriginatedFromRenderer() OVERRIDE; 30 virtual void MarkOriginatedFromRenderer() override;
31 virtual bool DidOriginateFromRenderer() const OVERRIDE; 31 virtual bool DidOriginateFromRenderer() const override;
32 virtual void SetString(const base::string16& data) OVERRIDE; 32 virtual void SetString(const base::string16& data) override;
33 virtual void SetURL(const GURL& url, const base::string16& title) OVERRIDE; 33 virtual void SetURL(const GURL& url, const base::string16& title) override;
34 virtual void SetFilename(const base::FilePath& path) OVERRIDE; 34 virtual void SetFilename(const base::FilePath& path) override;
35 virtual void SetFilenames(const std::vector<FileInfo>& filenames) OVERRIDE; 35 virtual void SetFilenames(const std::vector<FileInfo>& filenames) override;
36 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, 36 virtual void SetPickledData(const OSExchangeData::CustomFormat& format,
37 const Pickle& data) OVERRIDE; 37 const Pickle& data) override;
38 virtual bool GetString(base::string16* data) const OVERRIDE; 38 virtual bool GetString(base::string16* data) const override;
39 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, 39 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy,
40 GURL* url, 40 GURL* url,
41 base::string16* title) const OVERRIDE; 41 base::string16* title) const override;
42 virtual bool GetFilename(base::FilePath* path) const OVERRIDE; 42 virtual bool GetFilename(base::FilePath* path) const override;
43 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const OVERRIDE; 43 virtual bool GetFilenames(std::vector<FileInfo>* filenames) const override;
44 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, 44 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format,
45 Pickle* data) const OVERRIDE; 45 Pickle* data) const override;
46 virtual bool HasString() const OVERRIDE; 46 virtual bool HasString() const override;
47 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const 47 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const
48 OVERRIDE; 48 override;
49 virtual bool HasFile() const OVERRIDE; 49 virtual bool HasFile() const override;
50 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const 50 virtual bool HasCustomFormat(const OSExchangeData::CustomFormat& format) const
51 OVERRIDE; 51 override;
52 52
53 virtual void SetHtml(const base::string16& html, 53 virtual void SetHtml(const base::string16& html,
54 const GURL& base_url) OVERRIDE; 54 const GURL& base_url) override;
55 virtual bool GetHtml(base::string16* html, GURL* base_url) const OVERRIDE; 55 virtual bool GetHtml(base::string16* html, GURL* base_url) const override;
56 virtual bool HasHtml() const OVERRIDE; 56 virtual bool HasHtml() const override;
57 virtual void SetDragImage(const gfx::ImageSkia& image, 57 virtual void SetDragImage(const gfx::ImageSkia& image,
58 const gfx::Vector2d& cursor_offset) OVERRIDE; 58 const gfx::Vector2d& cursor_offset) override;
59 virtual const gfx::ImageSkia& GetDragImage() const OVERRIDE; 59 virtual const gfx::ImageSkia& GetDragImage() const override;
60 virtual const gfx::Vector2d& GetDragImageOffset() const OVERRIDE; 60 virtual const gfx::Vector2d& GetDragImageOffset() const override;
61 61
62 private: 62 private:
63 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData; 63 typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData;
64 64
65 // Returns true if |formats_| contains a string format and the string can be 65 // Returns true if |formats_| contains a string format and the string can be
66 // parsed as a URL. 66 // parsed as a URL.
67 bool GetPlainTextURL(GURL* url) const; 67 bool GetPlainTextURL(GURL* url) const;
68 68
69 // Actual formats that have been set. See comment above |known_formats_| 69 // Actual formats that have been set. See comment above |known_formats_|
70 // for details. 70 // for details.
(...skipping 19 matching lines...) Expand all
90 // For HTML format 90 // For HTML format
91 base::string16 html_; 91 base::string16 html_;
92 GURL base_url_; 92 GURL base_url_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); 94 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
95 }; 95 };
96 96
97 } // namespace ui 97 } // namespace ui
98 98
99 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 99 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/drag_utils.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698