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

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

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIN_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #include <string> 11 #include <string>
12 12
13 #include "base/win/scoped_comptr.h" 13 #include "base/win/scoped_comptr.h"
14 #include "ui/ui_api.h"
14 #include "ui/base/dragdrop/os_exchange_data.h" 15 #include "ui/base/dragdrop/os_exchange_data.h"
15 16
16 namespace ui { 17 namespace ui {
17 18
18 class DataObjectImpl : public DownloadFileObserver, 19 class DataObjectImpl : public DownloadFileObserver,
19 public IDataObject, 20 public IDataObject,
20 public IAsyncOperation { 21 public IAsyncOperation {
21 public: 22 public:
22 class Observer { 23 class Observer {
23 public: 24 public:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 StoredData contents_; 120 StoredData contents_;
120 121
121 base::win::ScopedComPtr<IDataObject> source_object_; 122 base::win::ScopedComPtr<IDataObject> source_object_;
122 123
123 bool is_aborting_; 124 bool is_aborting_;
124 bool in_async_mode_; 125 bool in_async_mode_;
125 bool async_operation_started_; 126 bool async_operation_started_;
126 Observer* observer_; 127 Observer* observer_;
127 }; 128 };
128 129
129 class OSExchangeDataProviderWin : public OSExchangeData::Provider { 130 class UI_API OSExchangeDataProviderWin : public OSExchangeData::Provider {
130 public: 131 public:
131 // Returns true if source has plain text that is a valid url. 132 // Returns true if source has plain text that is a valid url.
132 static bool HasPlainTextURL(IDataObject* source); 133 static bool HasPlainTextURL(IDataObject* source);
133 134
134 // Returns true if source has plain text that is a valid URL and sets url to 135 // Returns true if source has plain text that is a valid URL and sets url to
135 // that url. 136 // that url.
136 static bool GetPlainTextURL(IDataObject* source, GURL* url); 137 static bool GetPlainTextURL(IDataObject* source, GURL* url);
137 138
138 static DataObjectImpl* GetDataObjectImpl(const OSExchangeData& data); 139 static DataObjectImpl* GetDataObjectImpl(const OSExchangeData& data);
139 static IDataObject* GetIDataObject(const OSExchangeData& data); 140 static IDataObject* GetIDataObject(const OSExchangeData& data);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 private: 178 private:
178 scoped_refptr<DataObjectImpl> data_; 179 scoped_refptr<DataObjectImpl> data_;
179 base::win::ScopedComPtr<IDataObject> source_object_; 180 base::win::ScopedComPtr<IDataObject> source_object_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); 182 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin);
182 }; 183 };
183 184
184 } // namespace ui 185 } // namespace ui
185 186
186 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ 187 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698