OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/cocoa/tab_contents/web_drag_bookmark_handler_mac.h" | 5 #include "chrome/browser/ui/cocoa/tab_contents/web_drag_bookmark_handler_mac.h" |
6 | 6 |
| 7 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
7 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
9 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | |
11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
12 | 12 |
13 using content::WebContents; | 13 using content::WebContents; |
14 | 14 |
15 WebDragBookmarkHandlerMac::WebDragBookmarkHandlerMac() | 15 WebDragBookmarkHandlerMac::WebDragBookmarkHandlerMac() |
16 : bookmark_tab_helper_(NULL), | 16 : bookmark_tab_helper_(NULL), |
17 web_contents_(NULL) { | 17 web_contents_(NULL) { |
18 } | 18 } |
19 | 19 |
20 WebDragBookmarkHandlerMac::~WebDragBookmarkHandlerMac() {} | 20 WebDragBookmarkHandlerMac::~WebDragBookmarkHandlerMac() {} |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 browser->window()->Show(); | 56 browser->window()->Show(); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 void WebDragBookmarkHandlerMac::OnDragLeave() { | 60 void WebDragBookmarkHandlerMac::OnDragLeave() { |
61 if (bookmark_tab_helper_ && bookmark_tab_helper_->bookmark_drag_delegate()) { | 61 if (bookmark_tab_helper_ && bookmark_tab_helper_->bookmark_drag_delegate()) { |
62 bookmark_tab_helper_->bookmark_drag_delegate()->OnDragLeave( | 62 bookmark_tab_helper_->bookmark_drag_delegate()->OnDragLeave( |
63 bookmark_drag_data_); | 63 bookmark_drag_data_); |
64 } | 64 } |
65 } | 65 } |
OLD | NEW |