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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 #ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/web_contents_view_delegate.h"
13
14 class WebDragBookmarkHandlerAura;
15
16 namespace content {
17 class WebContents;
18 }
19
20 // A chrome specific class that extends TabContentsViewViews with features like
21 // custom drag and drop for bookmarks.
22 class ChromeWebContentsViewDelegateAura
23 : public content::WebContentsViewDelegate {
24 public:
25 explicit ChromeWebContentsViewDelegateAura(
26 content::WebContents* web_contents);
27 virtual ~ChromeWebContentsViewDelegateAura();
28
29 // Overridden from WebContentsViewDelegate:
30 virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE;
31 virtual void ShowContextMenu(
32 const content::ContextMenuParams& params) OVERRIDE;
33
34 private:
35 content::WebContents* web_contents_;
36
37 // The chrome specific delegate for bookmark DnD.
38 scoped_ptr<WebDragBookmarkHandlerAura> bookmark_handler_;
39
40 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAura);
41 };
42
43 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_
OLDNEW
« 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