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

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

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix viewgtk compile Created 9 years, 2 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) 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_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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
15 #include "chrome/browser/ui/gtk/focus_store_gtk.h" 15 #include "chrome/browser/ui/gtk/focus_store_gtk.h"
16 #include "content/browser/tab_contents/tab_contents_view.h" 16 #include "content/browser/tab_contents/tab_contents_view.h"
17 #include "content/common/notification_observer.h" 17 #include "content/common/notification_observer.h"
18 #include "content/common/notification_registrar.h" 18 #include "content/common/notification_registrar.h"
19 #include "ui/base/gtk/gtk_signal.h" 19 #include "ui/base/gtk/gtk_signal.h"
20 #include "ui/base/gtk/owned_widget_gtk.h" 20 #include "ui/base/gtk/owned_widget_gtk.h"
21 21
22 class ConstrainedWindowGtk; 22 class ConstrainedWindowGtk;
23 class RenderViewContextMenuGtk; 23 class RenderViewContextMenuGtk;
24 class SadTabGtk; 24 class SadTabGtk;
25 class TabContentsDragSource; 25 class TabContentsDragSource;
26 class WebDragBookmarkHandlerGtk;
26 class WebDragDestGtk; 27 class WebDragDestGtk;
27 28
28 class TabContentsViewGtk : public TabContentsView, 29 class TabContentsViewGtk : public TabContentsView,
29 public NotificationObserver { 30 public NotificationObserver {
30 public: 31 public:
31 // The corresponding TabContents is passed in the constructor, and manages our 32 // The corresponding TabContents is passed in the constructor, and manages our
32 // lifetime. This doesn't need to be the case, but is this way currently 33 // lifetime. This doesn't need to be the case, but is this way currently
33 // because that's what was easiest when they were split. 34 // because that's what was easiest when they were split.
34 explicit TabContentsViewGtk(TabContents* tab_contents); 35 explicit TabContentsViewGtk(TabContents* tab_contents);
35 virtual ~TabContentsViewGtk(); 36 virtual ~TabContentsViewGtk();
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 FocusStoreGtk focus_store_; 153 FocusStoreGtk focus_store_;
153 154
154 // The UI for the constrained dialog currently displayed. This is owned by 155 // The UI for the constrained dialog currently displayed. This is owned by
155 // TabContents, not the view. 156 // TabContents, not the view.
156 ConstrainedWindowGtk* constrained_window_; 157 ConstrainedWindowGtk* constrained_window_;
157 158
158 // The helper object that handles drag destination related interactions with 159 // The helper object that handles drag destination related interactions with
159 // GTK. 160 // GTK.
160 scoped_ptr<WebDragDestGtk> drag_dest_; 161 scoped_ptr<WebDragDestGtk> drag_dest_;
161 162
163 // The chrome specific delegate that receives events from WebDragDestGtk.
164 scoped_ptr<WebDragBookmarkHandlerGtk> bookmark_handler_gtk_;
165
162 // Object responsible for handling drags from the page for us. 166 // Object responsible for handling drags from the page for us.
163 scoped_ptr<TabContentsDragSource> drag_source_; 167 scoped_ptr<TabContentsDragSource> drag_source_;
164 168
165 // The size we want the tab contents view to be. We keep this in a separate 169 // The size we want the tab contents view to be. We keep this in a separate
166 // variable because resizing in GTK+ is async. 170 // variable because resizing in GTK+ is async.
167 gfx::Size requested_size_; 171 gfx::Size requested_size_;
168 172
169 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 173 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
170 }; 174 };
171 175
172 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 176 #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