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

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

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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/file_path.h" 10 #include "base/file_path.h"
11 #include "base/pickle.h" 11 #include "base/pickle.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "ui/base/dragdrop/os_exchange_data.h" 13 #include "ui/base/dragdrop/os_exchange_data.h"
14 #include "ui/gfx/image/image_skia.h" 14 #include "ui/gfx/image/image_skia.h"
15 #include "ui/gfx/vector2d.h" 15 #include "ui/gfx/vector2d.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_EXPORT OSExchangeDataProviderAura : public OSExchangeData::Provider { 22 class UI_EXPORT OSExchangeDataProviderAura : public OSExchangeData::Provider {
23 public: 23 public:
24 OSExchangeDataProviderAura(); 24 OSExchangeDataProviderAura();
25 virtual ~OSExchangeDataProviderAura(); 25 virtual ~OSExchangeDataProviderAura();
26 26
27 // Overridden from OSExchangeData::Provider: 27 // Overridden from OSExchangeData::Provider:
28 virtual void SetString(const string16& data) OVERRIDE; 28 virtual void SetString(const string16& data) OVERRIDE;
29 virtual void SetURL(const GURL& url, const string16& title) OVERRIDE; 29 virtual void SetURL(const GURL& url, const string16& title) OVERRIDE;
30 virtual void SetFilename(const FilePath& path) OVERRIDE; 30 virtual void SetFilename(const base::FilePath& path) OVERRIDE;
31 virtual void SetFilenames( 31 virtual void SetFilenames(
32 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE; 32 const std::vector<OSExchangeData::FileInfo>& filenames) OVERRIDE;
33 virtual void SetPickledData(OSExchangeData::CustomFormat format, 33 virtual void SetPickledData(OSExchangeData::CustomFormat format,
34 const Pickle& data) OVERRIDE; 34 const Pickle& data) OVERRIDE;
35 virtual bool GetString(string16* data) const OVERRIDE; 35 virtual bool GetString(string16* data) const OVERRIDE;
36 virtual bool GetURLAndTitle(GURL* url, string16* title) const OVERRIDE; 36 virtual bool GetURLAndTitle(GURL* url, string16* title) const OVERRIDE;
37 virtual bool GetFilename(FilePath* path) const OVERRIDE; 37 virtual bool GetFilename(base::FilePath* path) const OVERRIDE;
38 virtual bool GetFilenames( 38 virtual bool GetFilenames(
39 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE; 39 std::vector<OSExchangeData::FileInfo>* filenames) const OVERRIDE;
40 virtual bool GetPickledData(OSExchangeData::CustomFormat format, 40 virtual bool GetPickledData(OSExchangeData::CustomFormat format,
41 Pickle* data) const OVERRIDE; 41 Pickle* data) const OVERRIDE;
42 virtual bool HasString() const OVERRIDE; 42 virtual bool HasString() const OVERRIDE;
43 virtual bool HasURL() const OVERRIDE; 43 virtual bool HasURL() const OVERRIDE;
44 virtual bool HasFile() const OVERRIDE; 44 virtual bool HasFile() const OVERRIDE;
45 virtual bool HasCustomFormat( 45 virtual bool HasCustomFormat(
46 OSExchangeData::CustomFormat format) const OVERRIDE; 46 OSExchangeData::CustomFormat format) const OVERRIDE;
47 #if defined(OS_WIN) 47 #if defined(OS_WIN)
48 virtual void SetFileContents(const FilePath& filename, 48 virtual void SetFileContents(const base::FilePath& filename,
49 const std::string& file_contents) OVERRIDE; 49 const std::string& file_contents) OVERRIDE;
50 virtual bool GetFileContents(FilePath* filename, 50 virtual bool GetFileContents(base::FilePath* filename,
51 std::string* file_contents) const OVERRIDE; 51 std::string* file_contents) const OVERRIDE;
52 virtual bool HasFileContents() const OVERRIDE; 52 virtual bool HasFileContents() const OVERRIDE;
53 virtual void SetDownloadFileInfo( 53 virtual void SetDownloadFileInfo(
54 const OSExchangeData::DownloadFileInfo& download) OVERRIDE; 54 const OSExchangeData::DownloadFileInfo& download) OVERRIDE;
55 #endif 55 #endif
56 56
57 virtual void SetHtml(const string16& html, const GURL& base_url) OVERRIDE; 57 virtual void SetHtml(const string16& html, const GURL& base_url) OVERRIDE;
58 virtual bool GetHtml(string16* html, GURL* base_url) const OVERRIDE; 58 virtual bool GetHtml(string16* html, GURL* base_url) const OVERRIDE;
59 virtual bool HasHtml() const OVERRIDE; 59 virtual bool HasHtml() const OVERRIDE;
60 virtual void SetDragImage(const gfx::ImageSkia& image, 60 virtual void SetDragImage(const gfx::ImageSkia& image,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // For HTML format 93 // For HTML format
94 string16 html_; 94 string16 html_;
95 GURL base_url_; 95 GURL base_url_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura); 97 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderAura);
98 }; 98 };
99 99
100 } // namespace ui 100 } // namespace ui
101 101
102 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_ 102 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698