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

Side by Side Diff: chrome/browser/ui/views/tab_contents/web_drag_bookmark_handler_win.h

Issue 137993009: Remove more non-aura windows code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the disabled tests Created 6 years, 11 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_UI_VIEWS_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/bookmarks/bookmark_node_data.h"
10 #include "content/public/browser/web_drag_dest_delegate.h"
11
12 class BookmarkTabHelper;
13
14 namespace content {
15 class WebContents;
16 }
17
18 // Chrome needs to intercept content drag events so it can dispatch them to the
19 // bookmarks and extensions system.
20 class WebDragBookmarkHandlerWin : public content::WebDragDestDelegate {
21 public:
22 WebDragBookmarkHandlerWin();
23 virtual ~WebDragBookmarkHandlerWin();
24
25 // Overridden from content::WebDragDestDelegate:
26 virtual void DragInitialize(content::WebContents* contents) OVERRIDE;
27 virtual void OnDragOver(IDataObject* data_object) OVERRIDE;
28 virtual void OnDragEnter(IDataObject* data_object) OVERRIDE;
29 virtual void OnDrop(IDataObject* data_object) OVERRIDE;
30 virtual void OnDragLeave(IDataObject* data_object) OVERRIDE;
31 virtual bool AddDragData(const content::DropData& drop_data,
32 ui::OSExchangeData* data) OVERRIDE;
33
34 private:
35 // The BookmarkTabHelper.
36 // Weak reference; may be NULL if the contents don't have a
37 // BookmarkTabHelper (e.g. WebUI dialogs).
38 BookmarkTabHelper* bookmark_tab_helper_;
39
40 content::WebContents* web_contents_;
41
42 DISALLOW_COPY_AND_ASSIGN(WebDragBookmarkHandlerWin);
43 };
44
45 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698