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

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

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.h
diff --git a/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a152da3ff26e9d52912a0e923fd0ea35d69d12f
--- /dev/null
+++ b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h
@@ -0,0 +1,43 @@
+// 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.
+
+#ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
+#define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/public/browser/web_contents_view_delegate.h"
+
+class WebDragBookmarkHandlerAura;
+
+namespace content {
+class WebContents;
+}
+
+// A chrome specific class that extends TabContentsViewViews with features like
+// custom drag and drop for bookmarks.
+class ChromeWebContentsViewDelegateAura
+ : public content::WebContentsViewDelegate {
+ public:
+ explicit ChromeWebContentsViewDelegateAura(
+ content::WebContents* web_contents);
+ virtual ~ChromeWebContentsViewDelegateAura();
+
+ // Overridden from WebContentsViewDelegate:
+ virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
+ virtual void ShowContextMenu(
+ const content::ContextMenuParams& params) OVERRIDE;
+
+ private:
+ content::WebContents* web_contents_;
+
+ // The chrome specific delegate for bookmark DnD.
+ scoped_ptr<WebDragBookmarkHandlerAura> bookmark_handler_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAura);
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698