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

Unified Diff: chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc

Issue 9757001: Support custom drag-and-drop of bookmarks in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style fixes from CR Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
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) {
+}

Powered by Google App Engine
This is Rietveld 408576698