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

Side by Side Diff: chrome/browser/tab_contents/web_drag_source_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_drag_source_win.h" 5 #include "chrome/browser/tab_contents/web_drag_source_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/tab_contents/web_drag_utils_win.h" 8 #include "chrome/browser/tab_contents/web_drag_utils_win.h"
9 #include "content/browser/renderer_host/render_view_host.h" 9 #include "content/browser/renderer_host/render_view_host.h"
10 #include "content/browser/tab_contents/tab_contents.h"
11 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/notification_source.h" 11 #include "content/public/browser/notification_source.h"
13 #include "content/public/browser/notification_types.h" 12 #include "content/public/browser/notification_types.h"
13 #include "content/public/browser/web_contents.h"
14 14
15 using WebKit::WebDragOperationNone; 15 using WebKit::WebDragOperationNone;
16 using content::BrowserThread; 16 using content::BrowserThread;
17 using content::WebContents; 17 using content::WebContents;
18 18
19 namespace { 19 namespace {
20 20
21 static void GetCursorPositions(gfx::NativeWindow wnd, gfx::Point* client, 21 static void GetCursorPositions(gfx::NativeWindow wnd, gfx::Point* client,
22 gfx::Point* screen) { 22 gfx::Point* screen) {
23 POINT cursor_pos; 23 POINT cursor_pos;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // That's OK, we can continue the drag, we just can't send messages back to 117 // That's OK, we can continue the drag, we just can't send messages back to
118 // our drag source. 118 // our drag source.
119 render_view_host_ = NULL; 119 render_view_host_ = NULL;
120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) { 120 } else if (content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED == type) {
121 // This could be possible when we close the tab and the source is still 121 // This could be possible when we close the tab and the source is still
122 // being used in DoDragDrop at the time that the virtual file is being 122 // being used in DoDragDrop at the time that the virtual file is being
123 // downloaded. 123 // downloaded.
124 render_view_host_ = NULL; 124 render_view_host_ = NULL;
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_drag_bookmark_handler_mac.mm ('k') | chrome/browser/tab_contents/web_drop_target_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698