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

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

Issue 2322253004: Drag and dropping text, parsable as url (Closed)
Patch Set: Moving url logic out of os_exchange_data Created 4 years, 3 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
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H
6 #define UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H
7
8 #include <utility>
9
10 #include "base/optional.h"
11 #include "base/strings/string16.h"
12 #include "ui/base/dragdrop/os_exchange_data.h"
13 #include "ui/base/ui_base_export.h"
14 #include "url/gurl.h"
15
16 namespace ui {
17
18 bool UI_BASE_EXPORT
19 CanBeInterpretedAsURL(const ui::OSExchangeData& data,
20 ui::OSExchangeData::FilenameToURLPolicy policy);
21
22 // Returns url and title
23 base::Optional<std::pair<GURL, base::string16>> UI_BASE_EXPORT
24 TryToInterpretAsURL(const ui::OSExchangeData& data,
25 ui::OSExchangeData::FilenameToURLPolicy policy);
26 } // namespace ui
27
28 #endif // UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698