OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_ | |
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_ | |
7 #pragma once | |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "chrome/browser/bookmarks/bookmark_node_data.h" | |
11 #include "content/browser/tab_contents/web_drag_dest_delegate.h" | |
12 | |
13 class TabContentsWrapper; | |
14 | |
15 // Chrome needs to intercept content drag events so it can dispatch them to the | |
16 // bookmarks and extensions system. | |
17 class WebDragBookmarkHandlerMac : public content::WebDragDestDelegate { | |
18 public: | |
19 WebDragBookmarkHandlerMac(); | |
20 virtual ~WebDragBookmarkHandlerMac(); | |
21 | |
22 // Overridden from WebDragBookmarkDelegate: | |
jochen (gone - plz use gerrit)
2011/11/01 15:16:07
from WebDragDestDelegate?
Avi (use Gerrit)
2011/11/01 16:01:06
sigh. fixing everywhere.
| |
23 virtual void DragInitialize(TabContents* contents) OVERRIDE; | |
24 virtual void OnDragOver() OVERRIDE; | |
25 virtual void OnDragEnter() OVERRIDE; | |
26 virtual void OnDrop() OVERRIDE; | |
27 virtual void OnDragLeave() OVERRIDE; | |
28 | |
29 private: | |
30 // The TabContentsWrapper for |tab_contents_|. | |
31 // Weak reference; may be NULL if the contents aren't contained in a wrapper | |
32 // (e.g. WebUI dialogs). | |
33 TabContentsWrapper* tab_; | |
34 | |
35 // The bookmark data for the current tab. This will be empty if there is not | |
36 // a native bookmark drag. | |
37 BookmarkNodeData bookmark_drag_data_; | |
38 }; | |
jochen (gone - plz use gerrit)
2011/11/01 15:16:07
disallow copy & assign?
Avi (use Gerrit)
2011/11/01 16:01:06
yep.
| |
39 | |
40 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_ | |
OLD | NEW |