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

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

Issue 150204: GTK: when doing a drag from a web page, pass a recent mouse down to gtk_drag_... (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>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 OwnedWidgetGtk floating_; 109 OwnedWidgetGtk floating_;
110 110
111 // This container holds the tab's web page views. It is a GtkFixed so that we 111 // This container holds the tab's web page views. It is a GtkFixed so that we
112 // can control the size of the web pages. 112 // can control the size of the web pages.
113 GtkWidget* fixed_; 113 GtkWidget* fixed_;
114 114
115 // The context menu is reset every time we show it, but we keep a pointer to 115 // The context menu is reset every time we show it, but we keep a pointer to
116 // between uses so that it won't go out of scope before we're done with it. 116 // between uses so that it won't go out of scope before we're done with it.
117 scoped_ptr<RenderViewContextMenuGtk> context_menu_; 117 scoped_ptr<RenderViewContextMenuGtk> context_menu_;
118 118
119 // The event time for the last mouse down we handled. We need this to properly 119 // The event time for the last mouse down we handled. We need this for context
Elliot Glaysher 2009/07/02 20:04:46 s/time//;
120 // show context menus. 120 // menus and drags.
121 guint32 last_mouse_down_time_; 121 GdkEventButton last_mouse_down_;
122 122
123 // Used to get notifications about renderers coming and going. 123 // Used to get notifications about renderers coming and going.
124 NotificationRegistrar registrar_; 124 NotificationRegistrar registrar_;
125 125
126 scoped_ptr<SadTabGtk> sad_tab_; 126 scoped_ptr<SadTabGtk> sad_tab_;
127 127
128 FocusStoreGtk focus_store_; 128 FocusStoreGtk focus_store_;
129 129
130 // Our UI for controlling popups (or NULL if no popup windows have been 130 // Our UI for controlling popups (or NULL if no popup windows have been
131 // opened). |popup_view_| is owned by the TabContents, not the view. 131 // opened). |popup_view_| is owned by the TabContents, not the view.
132 BlockedPopupContainerViewGtk* popup_view_; 132 BlockedPopupContainerViewGtk* popup_view_;
133 133
134 // Each individual UI for constrained dialogs currently displayed. The 134 // Each individual UI for constrained dialogs currently displayed. The
135 // objects in this vector are owned by the TabContents, not the view. 135 // objects in this vector are owned by the TabContents, not the view.
136 std::vector<ConstrainedWindowGtk*> constrained_windows_; 136 std::vector<ConstrainedWindowGtk*> constrained_windows_;
137 137
138 // The drop data for the current drag (for drags that originate in the render 138 // The drop data for the current drag (for drags that originate in the render
139 // view). 139 // view).
140 scoped_ptr<WebDropData> drop_data_; 140 scoped_ptr<WebDropData> drop_data_;
141 // The mime type for the file contents of the current drag (if any). 141 // The mime type for the file contents of the current drag (if any).
142 GdkAtom drag_file_mime_type_; 142 GdkAtom drag_file_mime_type_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 144 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
145 }; 145 };
146 146
147 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 147 #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