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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_gtk.h

Issue 150198: GTK: first cut at web contents as drag destination.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/gtk/focus_store_gtk.h" 13 #include "chrome/browser/gtk/focus_store_gtk.h"
14 #include "chrome/browser/tab_contents/tab_contents_view.h" 14 #include "chrome/browser/tab_contents/tab_contents_view.h"
15 #include "chrome/common/notification_observer.h" 15 #include "chrome/common/notification_observer.h"
16 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
17 #include "chrome/common/owned_widget_gtk.h" 17 #include "chrome/common/owned_widget_gtk.h"
18 18
19 class BlockedPopupContainerViewGtk; 19 class BlockedPopupContainerViewGtk;
20 class ConstrainedWindowGtk; 20 class ConstrainedWindowGtk;
21 class RenderViewContextMenuGtk; 21 class RenderViewContextMenuGtk;
22 class SadTabGtk; 22 class SadTabGtk;
23 class WebDragDest;
23 typedef struct _GtkFloatingContainer GtkFloatingContainer; 24 typedef struct _GtkFloatingContainer GtkFloatingContainer;
24 25
25 class TabContentsViewGtk : public TabContentsView, 26 class TabContentsViewGtk : public TabContentsView,
26 public NotificationObserver { 27 public NotificationObserver {
27 public: 28 public:
28 // The corresponding TabContents is passed in the constructor, and manages our 29 // The corresponding TabContents is passed in the constructor, and manages our
29 // lifetime. This doesn't need to be the case, but is this way currently 30 // lifetime. This doesn't need to be the case, but is this way currently
30 // because that's what was easiest when they were split. 31 // because that's what was easiest when they were split.
31 explicit TabContentsViewGtk(TabContents* tab_contents); 32 explicit TabContentsViewGtk(TabContents* tab_contents);
32 virtual ~TabContentsViewGtk(); 33 virtual ~TabContentsViewGtk();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Each individual UI for constrained dialogs currently displayed. The 135 // Each individual UI for constrained dialogs currently displayed. The
135 // objects in this vector are owned by the TabContents, not the view. 136 // objects in this vector are owned by the TabContents, not the view.
136 std::vector<ConstrainedWindowGtk*> constrained_windows_; 137 std::vector<ConstrainedWindowGtk*> constrained_windows_;
137 138
138 // The drop data for the current drag (for drags that originate in the render 139 // The drop data for the current drag (for drags that originate in the render
139 // view). 140 // view).
140 scoped_ptr<WebDropData> drop_data_; 141 scoped_ptr<WebDropData> drop_data_;
141 // The mime type for the file contents of the current drag (if any). 142 // The mime type for the file contents of the current drag (if any).
142 GdkAtom drag_file_mime_type_; 143 GdkAtom drag_file_mime_type_;
144 // The helper object that handles drag destination related interactions with
145 // GTK.
146 scoped_ptr<WebDragDest> drag_dest_;
143 147
144 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 148 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
145 }; 149 };
146 150
147 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 151 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698