| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #if defined(OS_WIN) | |
| 6 #include <atlbase.h> | |
| 7 #include <atlapp.h> | |
| 8 #include <atlmisc.h> | |
| 9 #endif | |
| 10 | |
| 11 #include "chrome/browser/tab_contents/web_drag_source.h" | 5 #include "chrome/browser/tab_contents/web_drag_source.h" |
| 12 | 6 |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | 7 #include "chrome/browser/renderer_host/render_view_host.h" |
| 14 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
| 15 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
| 16 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
| 17 | 11 |
| 18 using WebKit::WebDragOperationNone; | 12 using WebKit::WebDragOperationNone; |
| 19 using WebKit::WebDragOperationCopy; | 13 using WebKit::WebDragOperationCopy; |
| 20 | 14 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const NotificationSource& source, const NotificationDetails& details) { | 83 const NotificationSource& source, const NotificationDetails& details) { |
| 90 if (NotificationType::TAB_CONTENTS_SWAPPED == type) { | 84 if (NotificationType::TAB_CONTENTS_SWAPPED == type) { |
| 91 // When the tab contents get swapped, our render view host goes away. | 85 // When the tab contents get swapped, our render view host goes away. |
| 92 // That's OK, we can continue the drag, we just can't send messages back to | 86 // That's OK, we can continue the drag, we just can't send messages back to |
| 93 // our drag source. | 87 // our drag source. |
| 94 render_view_host_ = NULL; | 88 render_view_host_ = NULL; |
| 95 } else if (NotificationType::TAB_CONTENTS_DISCONNECTED) { | 89 } else if (NotificationType::TAB_CONTENTS_DISCONNECTED) { |
| 96 NOTREACHED(); | 90 NOTREACHED(); |
| 97 } | 91 } |
| 98 } | 92 } |
| OLD | NEW |