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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 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 | 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_TAB_WEB_DRAG_SOURCE_GTK_H_ 5 #ifndef CONTENT_BROWSER_TAB_WEB_DRAG_SOURCE_GTK_H_
6 #define CONTENT_BROWSER_TAB_WEB_DRAG_SOURCE_GTK_H_ 6 #define CONTENT_BROWSER_TAB_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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
18 #include "ui/base/gtk/gtk_signal.h" 18 #include "ui/base/gtk/gtk_signal.h"
19 #include "ui/base/gtk/gtk_signal_registrar.h" 19 #include "ui/base/gtk/gtk_signal_registrar.h"
20 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/point.h" 21 #include "ui/gfx/point.h"
22 22
23 class RenderViewHostImpl;
24 class SkBitmap; 23 class SkBitmap;
25 struct WebDropData; 24 struct WebDropData;
26 25
27 namespace content { 26 namespace content {
28 27
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 tab contents this WebDragSourceGtk was
(...skipping 13 matching lines...) Expand all
52 GdkDragContext*, GtkDragResult); 52 GdkDragContext*, GtkDragResult);
53 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin, 53 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragBegin,
54 GdkDragContext*); 54 GdkDragContext*);
55 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd, 55 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, void, OnDragEnd,
56 GdkDragContext*); 56 GdkDragContext*);
57 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet, 57 CHROMEGTK_CALLBACK_4(WebDragSourceGtk, void, OnDragDataGet,
58 GdkDragContext*, GtkSelectionData*, guint, guint); 58 GdkDragContext*, GtkSelectionData*, guint, guint);
59 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose, 59 CHROMEGTK_CALLBACK_1(WebDragSourceGtk, gboolean, OnDragIconExpose,
60 GdkEventExpose*); 60 GdkEventExpose*);
61 61
62 RenderViewHostImpl* GetRenderViewHost() const; 62 content::RenderViewHostImpl* GetRenderViewHost() const;
63 gfx::NativeView GetContentNativeView() const; 63 gfx::NativeView GetContentNativeView() const;
64 64
65 // The tab we're manging the drag for. 65 // The tab we're manging the drag for.
66 content::WebContents* web_contents_; 66 content::WebContents* web_contents_;
67 67
68 // The drop data for the current drag (for drags that originate in the render 68 // The drop data for the current drag (for drags that originate in the render
69 // view). Non-NULL iff there is a current drag. 69 // view). Non-NULL iff there is a current drag.
70 scoped_ptr<WebDropData> drop_data_; 70 scoped_ptr<WebDropData> drop_data_;
71 71
72 // The image used for depicting the drag, and the offset between the cursor 72 // The image used for depicting the drag, and the offset between the cursor
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 GtkWidget* drag_icon_; 106 GtkWidget* drag_icon_;
107 107
108 ui::GtkSignalRegistrar signals_; 108 ui::GtkSignalRegistrar signals_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk); 110 DISALLOW_COPY_AND_ASSIGN(WebDragSourceGtk);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_BROWSER_TAB_WEB_DRAG_SOURCE_GTK_H_ 115 #endif // CONTENT_BROWSER_TAB_WEB_DRAG_SOURCE_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_drag_dest_win.h ('k') | content/browser/tab_contents/web_drag_source_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698