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

Side by Side Diff: content/browser/web_contents/web_drag_source_gtk.h

Issue 9956154: TabContents -> WebContentsImpl, part 16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 17 matching lines...) Expand all
28 class RenderViewHostImpl; 28 class RenderViewHostImpl;
29 class WebContents; 29 class WebContents;
30 30
31 // WebDragSourceGtk takes care of managing the drag from a WebContents 31 // WebDragSourceGtk takes care of managing the drag from a WebContents
32 // with Gtk. 32 // with Gtk.
33 class CONTENT_EXPORT WebDragSourceGtk : public MessageLoopForUI::Observer { 33 class CONTENT_EXPORT WebDragSourceGtk : public MessageLoopForUI::Observer {
34 public: 34 public:
35 explicit WebDragSourceGtk(WebContents* web_contents); 35 explicit WebDragSourceGtk(WebContents* web_contents);
36 virtual ~WebDragSourceGtk(); 36 virtual ~WebDragSourceGtk();
37 37
38 // Starts a drag for the tab contents this WebDragSourceGtk was 38 // Starts a drag for the WebContents this WebDragSourceGtk was created for.
39 // created for.
40 void StartDragging(const WebDropData& drop_data, 39 void StartDragging(const WebDropData& drop_data,
41 WebKit::WebDragOperationsMask allowed_ops, 40 WebKit::WebDragOperationsMask allowed_ops,
42 GdkEventButton* last_mouse_down, 41 GdkEventButton* last_mouse_down,
43 const SkBitmap& image, 42 const SkBitmap& image,
44 const gfx::Point& image_offset); 43 const gfx::Point& image_offset);
45 44
46 // MessageLoop::Observer implementation: 45 // MessageLoop::Observer implementation:
47 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 46 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
48 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 47 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
49 48
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 GtkWidget* drag_icon_; 105 GtkWidget* drag_icon_;
107 106
108 ui::GtkSignalRegistrar signals_; 107 ui::GtkSignalRegistrar signals_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); 109 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk);
111 }; 110 };
112 111
113 } // namespace content 112 } // namespace content
114 113
115 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_ 114 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_SOURCE_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_dest_gtk.cc ('k') | content/browser/web_contents/web_drag_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698