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

Unified Diff: chrome/browser/tab_contents/web_drop_target_win.cc

Issue 6200005: Move OSExchangeData from src/app to src/ui/base/dragdrop... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/web_drop_target_win.cc
===================================================================
--- chrome/browser/tab_contents/web_drop_target_win.cc (revision 71050)
+++ chrome/browser/tab_contents/web_drop_target_win.cc (working copy)
@@ -7,8 +7,6 @@
#include <windows.h>
#include <shlobj.h>
-#include "app/os_exchange_data.h"
-#include "app/os_exchange_data_provider_win.h"
#include "chrome/browser/bookmarks/bookmark_node_data.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/tab_contents.h"
@@ -17,6 +15,8 @@
#include "googleurl/src/gurl.h"
#include "net/base/net_util.h"
#include "ui/base/clipboard/clipboard_util_win.h"
+#include "ui/base/dragdrop/os_exchange_data.h"
+#include "ui/base/dragdrop/os_exchange_data_provider_win.h"
#include "webkit/glue/webdropdata.h"
#include "webkit/glue/window_open_disposition.h"
@@ -110,7 +110,7 @@
WebDropData::PopulateWebDropData(data_object, &drop_data);
if (drop_data.url.is_empty())
- OSExchangeDataProviderWin::GetPlainTextURL(data_object, &drop_data.url);
+ ui::OSExchangeDataProviderWin::GetPlainTextURL(data_object, &drop_data.url);
drag_cursor_ = WebDragOperationNone;
@@ -124,7 +124,8 @@
// This is non-null if tab_contents_ is showing an ExtensionDOMUI with
// support for (at the moment experimental) drag and drop extensions.
if (tab_contents_->GetBookmarkDragDelegate()) {
- OSExchangeData os_exchange_data(new OSExchangeDataProviderWin(data_object));
+ ui::OSExchangeData os_exchange_data(
+ new ui::OSExchangeDataProviderWin(data_object));
BookmarkNodeData bookmark_drag_data;
if (bookmark_drag_data.Read(os_exchange_data))
tab_contents_->GetBookmarkDragDelegate()->OnDragEnter(bookmark_drag_data);
@@ -154,7 +155,8 @@
web_drag_utils_win::WinDragOpMaskToWebDragOpMask(effects));
if (tab_contents_->GetBookmarkDragDelegate()) {
- OSExchangeData os_exchange_data(new OSExchangeDataProviderWin(data_object));
+ ui::OSExchangeData os_exchange_data(
+ new ui::OSExchangeDataProviderWin(data_object));
BookmarkNodeData bookmark_drag_data;
if (bookmark_drag_data.Read(os_exchange_data))
tab_contents_->GetBookmarkDragDelegate()->OnDragOver(bookmark_drag_data);
@@ -175,7 +177,8 @@
}
if (tab_contents_->GetBookmarkDragDelegate()) {
- OSExchangeData os_exchange_data(new OSExchangeDataProviderWin(data_object));
+ ui::OSExchangeData os_exchange_data(
+ new ui::OSExchangeDataProviderWin(data_object));
BookmarkNodeData bookmark_drag_data;
if (bookmark_drag_data.Read(os_exchange_data))
tab_contents_->GetBookmarkDragDelegate()->OnDragLeave(bookmark_drag_data);
@@ -203,7 +206,8 @@
gfx::Point(cursor_position.x, cursor_position.y));
if (tab_contents_->GetBookmarkDragDelegate()) {
- OSExchangeData os_exchange_data(new OSExchangeDataProviderWin(data_object));
+ ui::OSExchangeData os_exchange_data(
+ new ui::OSExchangeDataProviderWin(data_object));
BookmarkNodeData bookmark_drag_data;
if (bookmark_drag_data.Read(os_exchange_data))
tab_contents_->GetBookmarkDragDelegate()->OnDrop(bookmark_drag_data);
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/ui/views/bookmark_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698