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

Side by Side Diff: chrome/browser/tab_contents/web_drop_target_win.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 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 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 #include "chrome/browser/tab_contents/web_drop_target_win.h" 5 #include "chrome/browser/tab_contents/web_drop_target_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 9
10 #include "chrome/browser/bookmarks/bookmark_node_data.h" 10 #include "chrome/browser/bookmarks/bookmark_node_data.h"
11 #include "chrome/browser/tab_contents/web_drag_utils_win.h" 11 #include "chrome/browser/tab_contents/web_drag_utils_win.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/browser_window.h" 14 #include "chrome/browser/ui/browser_window.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "content/browser/renderer_host/render_view_host.h" 16 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/tab_contents/tab_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
20 #include "ui/base/clipboard/clipboard_util_win.h" 20 #include "ui/base/clipboard/clipboard_util_win.h"
21 #include "ui/base/dragdrop/os_exchange_data.h" 21 #include "ui/base/dragdrop/os_exchange_data.h"
22 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 22 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
23 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
24 #include "webkit/glue/webdropdata.h" 24 #include "webkit/glue/webdropdata.h"
25 #include "webkit/glue/window_open_disposition.h" 25 #include "webkit/glue/window_open_disposition.h"
26 26
27 using WebKit::WebDragOperationNone; 27 using WebKit::WebDragOperationNone;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 Browser* browser = Browser::GetBrowserForController( 236 Browser* browser = Browser::GetBrowserForController(
237 &web_contents_->GetController(), NULL); 237 &web_contents_->GetController(), NULL);
238 if (browser) 238 if (browser)
239 browser->window()->Show(); 239 browser->window()->Show();
240 240
241 // This isn't always correct, but at least it's a close approximation. 241 // This isn't always correct, but at least it's a close approximation.
242 // For now, we always map a move to a copy to prevent potential data loss. 242 // For now, we always map a move to a copy to prevent potential data loss.
243 DWORD drop_effect = web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_); 243 DWORD drop_effect = web_drag_utils_win::WebDragOpToWinDragOp(drag_cursor_);
244 return drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY; 244 return drop_effect != DROPEFFECT_MOVE ? drop_effect : DROPEFFECT_COPY;
245 } 245 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source_win.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698