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 #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_ |
OLD | NEW |