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

Side by Side Diff: chrome/browser/tab_contents/web_drag_dest_delegate_gtk.h

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix viewgtk compile Created 9 years, 2 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) 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_DEST_DELEGATE_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_DELEGATE_GTK_H_
7 #pragma once
8
9 #include <gtk/gtk.h>
10
11 #include "base/string16.h"
12
13 class GURL;
14 class TabContents;
15
16 // An optional delegate that listens for drags of bookmark data.
17 class WebDragDestDelegateGtk {
18 public:
19 // Announces that a drag has started. It's valid that a drag starts, along
20 // with over/enter/leave/drop notifications without receiving any bookmark
21 // data.
22 virtual void DragInitialize(TabContents* contents) = 0;
23
24 // Returns the bookmark atom type. GTK and Views return different values here.
25 virtual GdkAtom GetBookmarkTargetAtom() const = 0;
26
27 // Called when WebDragDestkGtk detects that there's bookmark data in a
28 // drag. Not every drag will trigger these.
29 virtual void OnReceiveDataFromGtk(GtkSelectionData* data) = 0;
30 virtual void OnReceiveProcessedData(const GURL& url,
31 const string16& title) = 0;
32
33 // Notifications of drag progression.
34 virtual void OnDragOver() = 0;
35 virtual void OnDragEnter() = 0;
36 virtual void OnDrop() = 0;
37
38 // This should also clear any state kept about this drag.
39 virtual void OnDragLeave() = 0;
40
41 virtual ~WebDragDestDelegateGtk();
42 };
43
44 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_DEST_DELEGATE_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698