OLD | NEW |
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_DEST_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // this handles destination-side DnD, but not source-side DnD. | 25 // this handles destination-side DnD, but not source-side DnD. |
26 class CONTENT_EXPORT WebDragDestGtk { | 26 class CONTENT_EXPORT WebDragDestGtk { |
27 public: | 27 public: |
28 WebDragDestGtk(WebContents* web_contents, GtkWidget* widget); | 28 WebDragDestGtk(WebContents* web_contents, GtkWidget* widget); |
29 ~WebDragDestGtk(); | 29 ~WebDragDestGtk(); |
30 | 30 |
31 DropData* current_drop_data() const { return drop_data_.get(); } | 31 DropData* current_drop_data() const { return drop_data_.get(); } |
32 | 32 |
33 // This is called when the renderer responds to a drag motion event. We must | 33 // This is called when the renderer responds to a drag motion event. We must |
34 // update the system drag cursor. | 34 // update the system drag cursor. |
35 void UpdateDragStatus(WebKit::WebDragOperation operation); | 35 void UpdateDragStatus(blink::WebDragOperation operation); |
36 | 36 |
37 // Informs the renderer when a system drag has left the render view. | 37 // Informs the renderer when a system drag has left the render view. |
38 // See OnDragLeave(). | 38 // See OnDragLeave(). |
39 void DragLeave(); | 39 void DragLeave(); |
40 | 40 |
41 WebDragDestDelegate* delegate() const { return delegate_; } | 41 WebDragDestDelegate* delegate() const { return delegate_; } |
42 void set_delegate(WebDragDestDelegate* delegate) { delegate_ = delegate; } | 42 void set_delegate(WebDragDestDelegate* delegate) { delegate_ = delegate; } |
43 | 43 |
44 GtkWidget* widget() const { return widget_; } | 44 GtkWidget* widget() const { return widget_; } |
45 | 45 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool canceled_; | 105 bool canceled_; |
106 | 106 |
107 base::WeakPtrFactory<WebDragDestGtk> method_factory_; | 107 base::WeakPtrFactory<WebDragDestGtk> method_factory_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); | 109 DISALLOW_COPY_AND_ASSIGN(WebDragDestGtk); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_GTK_H_ | 114 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_DRAG_DEST_GTK_H_ |
OLD | NEW |