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

Side by Side Diff: chrome/browser/ui/gtk/tab_contents_drag_source.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tab_contents_container_gtk.h ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698