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

Side by Side Diff: chrome/browser/gtk/tab_contents_drag_source.h

Issue 1084003: Fix HTML5 effectAllowed and dragEffect on Chrome Linux. (Closed)
Patch Set: actual Created 10 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
« no previous file with comments | « app/gtk_dnd_util.cc ('k') | chrome/browser/gtk/tab_contents_drag_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ 5 #ifndef CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_
6 #define CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ 6 #define CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 class TabContentsDragSource : public MessageLoopForUI::Observer { 26 class TabContentsDragSource : public MessageLoopForUI::Observer {
27 public: 27 public:
28 explicit TabContentsDragSource(TabContentsView* tab_contents_view); 28 explicit TabContentsDragSource(TabContentsView* tab_contents_view);
29 ~TabContentsDragSource(); 29 ~TabContentsDragSource();
30 30
31 TabContents* tab_contents() const; 31 TabContents* tab_contents() const;
32 32
33 // Starts a drag for the tab contents this TabContentsDragSource was 33 // Starts a drag for the tab contents this TabContentsDragSource was
34 // created for. 34 // created for.
35 void StartDragging(const WebDropData& drop_data, 35 void StartDragging(const WebDropData& drop_data,
36 WebKit::WebDragOperationsMask allowed_ops,
36 GdkEventButton* last_mouse_down, 37 GdkEventButton* last_mouse_down,
37 const SkBitmap& image, 38 const SkBitmap& image,
38 const gfx::Point& image_offset); 39 const gfx::Point& image_offset);
39 40
40 // MessageLoop::Observer implementation: 41 // MessageLoop::Observer implementation:
41 virtual void WillProcessEvent(GdkEvent* event); 42 virtual void WillProcessEvent(GdkEvent* event);
42 virtual void DidProcessEvent(GdkEvent* event); 43 virtual void DidProcessEvent(GdkEvent* event);
43 44
44 private: 45 private:
45 static gboolean OnDragFailedThunk(GtkWidget* widget, 46 static gboolean OnDragFailedThunk(GtkWidget* widget,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // The file name to be saved to for a drag-out download. 107 // The file name to be saved to for a drag-out download.
107 FilePath download_file_name_; 108 FilePath download_file_name_;
108 109
109 // The URL to download from for a drag-out download. 110 // The URL to download from for a drag-out download.
110 GURL download_url_; 111 GURL download_url_;
111 112
112 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); 113 DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource);
113 }; 114 };
114 115
115 #endif // CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ 116 #endif // CHROME_BROWSER_GTK_TAB_CONTENTS_DRAG_SOURCE_H_
OLDNEW
« no previous file with comments | « app/gtk_dnd_util.cc ('k') | chrome/browser/gtk/tab_contents_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698