Index: chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc |
diff --git a/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac69b79e1f53797095d4d9119fbaf1eeb0e35e26 |
--- /dev/null |
+++ b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h" |
+ |
+#include "chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h" |
+#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_contents_view.h" |
+ |
+ChromeWebContentsViewDelegateAura::ChromeWebContentsViewDelegateAura( |
+ content::WebContents* web_contents) |
+ : web_contents_(web_contents), |
+ bookmark_handler_(new WebDragBookmarkHandlerAura()) { |
+} |
+ |
+ChromeWebContentsViewDelegateAura::~ChromeWebContentsViewDelegateAura() { |
+} |
+ |
+content::WebDragDestDelegate* |
+ ChromeWebContentsViewDelegateAura::GetDragDestDelegate() { |
+ // We install a chrome specific handler to intercept bookmark drags for the |
+ // bookmark manager/extension API. |
+ return bookmark_handler_.get(); |
+} |
+ |
+void ChromeWebContentsViewDelegateAura::ShowContextMenu( |
+ const content::ContextMenuParams& params) { |
+} |