| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 
| 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 6 #define CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> | 
| 10 | 10 | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22 class SkBitmap; | 22 class SkBitmap; | 
| 23 class TabContents; | 23 class TabContents; | 
| 24 class TabContentsView; | 24 class TabContentsView; | 
| 25 struct WebDropData; | 25 struct WebDropData; | 
| 26 | 26 | 
| 27 // TabContentsDragSource takes care of managing the drag from a TabContents | 27 // TabContentsDragSource takes care of managing the drag from a TabContents | 
| 28 // with Gtk. | 28 // with Gtk. | 
| 29 class TabContentsDragSource : public MessageLoopForUI::Observer { | 29 class TabContentsDragSource : public MessageLoopForUI::Observer { | 
| 30  public: | 30  public: | 
| 31   explicit TabContentsDragSource(TabContentsView* tab_contents_view); | 31   explicit TabContentsDragSource(TabContentsView* tab_contents_view); | 
| 32   ~TabContentsDragSource(); | 32   virtual ~TabContentsDragSource(); | 
| 33 | 33 | 
| 34   TabContents* tab_contents() const; | 34   TabContents* tab_contents() const; | 
| 35 | 35 | 
| 36   // Starts a drag for the tab contents this TabContentsDragSource was | 36   // Starts a drag for the tab contents this TabContentsDragSource was | 
| 37   // created for. | 37   // created for. | 
| 38   void StartDragging(const WebDropData& drop_data, | 38   void StartDragging(const WebDropData& drop_data, | 
| 39                      WebKit::WebDragOperationsMask allowed_ops, | 39                      WebKit::WebDragOperationsMask allowed_ops, | 
| 40                      GdkEventButton* last_mouse_down, | 40                      GdkEventButton* last_mouse_down, | 
| 41                      const SkBitmap& image, | 41                      const SkBitmap& image, | 
| 42                      const gfx::Point& image_offset); | 42                      const gfx::Point& image_offset); | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 101   // an OwnedWidgetGtk because the GtkWindow initialization code sinks | 101   // an OwnedWidgetGtk because the GtkWindow initialization code sinks | 
| 102   // the reference. | 102   // the reference. | 
| 103   GtkWidget* drag_icon_; | 103   GtkWidget* drag_icon_; | 
| 104 | 104 | 
| 105   ui::GtkSignalRegistrar signals_; | 105   ui::GtkSignalRegistrar signals_; | 
| 106 | 106 | 
| 107   DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); | 107   DISALLOW_COPY_AND_ASSIGN(TabContentsDragSource); | 
| 108 }; | 108 }; | 
| 109 | 109 | 
| 110 #endif  // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 110 #endif  // CHROME_BROWSER_UI_GTK_TAB_CONTENTS_DRAG_SOURCE_H_ | 
| OLD | NEW | 
|---|