OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h" |
| 6 |
| 7 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h" |
| 8 #include "content/public/browser/web_contents.h" |
| 9 #include "content/public/browser/web_contents_view.h" |
| 10 |
| 11 ChromeWebContentsViewDelegateAura::ChromeWebContentsViewDelegateAura( |
| 12 content::WebContents* web_contents) |
| 13 : web_contents_(web_contents), |
| 14 bookmark_handler_(new WebDragBookmarkHandlerAura()) { |
| 15 } |
| 16 |
| 17 ChromeWebContentsViewDelegateAura::~ChromeWebContentsViewDelegateAura() { |
| 18 } |
| 19 |
| 20 content::WebDragDestDelegate* |
| 21 ChromeWebContentsViewDelegateAura::GetDragDestDelegate() { |
| 22 // We install a chrome specific handler to intercept bookmark drags for the |
| 23 // bookmark manager/extension API. |
| 24 return bookmark_handler_.get(); |
| 25 } |
| 26 |
| 27 void ChromeWebContentsViewDelegateAura::ShowContextMenu( |
| 28 const content::ContextMenuParams& params) { |
| 29 } |
OLD | NEW |