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

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

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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) 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 "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // We keep track of the timestamp of the latest mousedown event. 68 // We keep track of the timestamp of the latest mousedown event.
69 static gboolean OnMouseDown(GtkWidget* widget, 69 static gboolean OnMouseDown(GtkWidget* widget,
70 GdkEventButton* event, TabContentsViewGtk* view); 70 GdkEventButton* event, TabContentsViewGtk* view);
71 71
72 // Used to propagate size changes on |fixed_| to its children. 72 // Used to propagate size changes on |fixed_| to its children.
73 static gboolean OnSizeAllocate(GtkWidget* widget, 73 static gboolean OnSizeAllocate(GtkWidget* widget,
74 GtkAllocation* config, 74 GtkAllocation* config,
75 TabContentsViewGtk* view); 75 TabContentsViewGtk* view);
76 76
77 // The native widget for the tab.
78 OwnedWidgetGtk vbox_;
79
80 // This container holds the tab's web page views. It is a GtkFixed so that we 77 // This container holds the tab's web page views. It is a GtkFixed so that we
81 // can control the size of the web pages. 78 // can control the size of the web pages.
82 GtkWidget* fixed_; 79 OwnedWidgetGtk fixed_;
83 80
84 // The context menu is reset every time we show it, but we keep a pointer to 81 // The context menu is reset every time we show it, but we keep a pointer to
85 // between uses so that it won't go out of scope before we're done with it. 82 // between uses so that it won't go out of scope before we're done with it.
86 scoped_ptr<RenderViewContextMenuGtk> context_menu_; 83 scoped_ptr<RenderViewContextMenuGtk> context_menu_;
87 84
88 // The event time for the last mouse down we handled. We need this to properly 85 // The event time for the last mouse down we handled. We need this to properly
89 // show context menus. 86 // show context menus.
90 guint32 last_mouse_down_time_; 87 guint32 last_mouse_down_time_;
91 88
92 // Used to get notifications about renderers coming and going. 89 // Used to get notifications about renderers coming and going.
93 NotificationRegistrar registrar_; 90 NotificationRegistrar registrar_;
94 91
95 scoped_ptr<SadTabGtk> sad_tab_; 92 scoped_ptr<SadTabGtk> sad_tab_;
96 93
97 FocusStoreGtk focus_store_; 94 FocusStoreGtk focus_store_;
98 95
99 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 96 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
100 }; 97 };
101 98
102 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 99 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698