| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |