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

Side by Side Diff: chrome/browser/ui/gtk/download/download_shelf_gtk.h

Issue 7708021: content: Move render_widget_host_view_gtk to content/ try 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_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 "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "chrome/browser/download/download_shelf.h" 15 #include "chrome/browser/download/download_shelf.h"
16 #include "chrome/browser/ui/gtk/owned_widget_gtk.h"
17 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" 16 #include "chrome/browser/ui/gtk/slide_animator_gtk.h"
18 #include "content/common/notification_observer.h" 17 #include "content/common/notification_observer.h"
19 #include "content/common/notification_registrar.h" 18 #include "content/common/notification_registrar.h"
20 #include "ui/base/gtk/gtk_signal.h" 19 #include "ui/base/gtk/gtk_signal.h"
20 #include "ui/base/gtk/owned_widget_gtk.h"
21 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
22 22
23 class BaseDownloadItemModel; 23 class BaseDownloadItemModel;
24 class Browser; 24 class Browser;
25 class CustomDrawButton; 25 class CustomDrawButton;
26 class DownloadItemGtk; 26 class DownloadItemGtk;
27 class GtkThemeService; 27 class GtkThemeService;
28 class SlideAnimatorGtk; 28 class SlideAnimatorGtk;
29 29
30 namespace gfx { 30 namespace gfx {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 CHROMEGTK_CALLBACK_0(DownloadShelfGtk, void, OnButtonClick); 101 CHROMEGTK_CALLBACK_0(DownloadShelfGtk, void, OnButtonClick);
102 102
103 // The browser that owns this download shelf. 103 // The browser that owns this download shelf.
104 Browser* browser_; 104 Browser* browser_;
105 105
106 // The top level widget of the shelf. 106 // The top level widget of the shelf.
107 scoped_ptr<SlideAnimatorGtk> slide_widget_; 107 scoped_ptr<SlideAnimatorGtk> slide_widget_;
108 108
109 // |items_hbox_| holds the download items. 109 // |items_hbox_| holds the download items.
110 OwnedWidgetGtk items_hbox_; 110 ui::OwnedWidgetGtk items_hbox_;
111 111
112 // |shelf_| is the second highest level widget. See the constructor 112 // |shelf_| is the second highest level widget. See the constructor
113 // for an explanation of the widget layout. 113 // for an explanation of the widget layout.
114 OwnedWidgetGtk shelf_; 114 ui::OwnedWidgetGtk shelf_;
115 115
116 // Top level event box which draws the one pixel border. 116 // Top level event box which draws the one pixel border.
117 GtkWidget* top_border_; 117 GtkWidget* top_border_;
118 118
119 // A GtkEventBox which we color. 119 // A GtkEventBox which we color.
120 GtkWidget* padding_bg_; 120 GtkWidget* padding_bg_;
121 121
122 // The "Show all downloads..." link. 122 // The "Show all downloads..." link.
123 GtkWidget* link_button_; 123 GtkWidget* link_button_;
124 124
(...skipping 17 matching lines...) Expand all
142 // True if the mouse is within the shelf's bounds, as of the last mouse event 142 // True if the mouse is within the shelf's bounds, as of the last mouse event
143 // we received. 143 // we received.
144 bool mouse_in_shelf_; 144 bool mouse_in_shelf_;
145 145
146 ScopedRunnableMethodFactory<DownloadShelfGtk> auto_close_factory_; 146 ScopedRunnableMethodFactory<DownloadShelfGtk> auto_close_factory_;
147 147
148 friend class DownloadItemGtk; 148 friend class DownloadItemGtk;
149 }; 149 };
150 150
151 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_ 151 #endif // CHROME_BROWSER_UI_GTK_DOWNLOAD_DOWNLOAD_SHELF_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_gtk.h ('k') | chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698