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

Side by Side Diff: chrome/browser/gtk/extension_shelf_gtk.h

Issue 159763: Rolling back change 22245. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 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
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_GTK_EXTENSION_SHELF_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_EXTENSION_SHELF_GTK_H_
6 #define CHROME_BROWSER_GTK_EXTENSION_SHELF_GTK_H_ 6 #define CHROME_BROWSER_GTK_EXTENSION_SHELF_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 24 matching lines...) Expand all
35 // default behaviour). 35 // default behaviour).
36 void Show(); 36 void Show();
37 void Hide(); 37 void Hide();
38 38
39 // ExtensionShelfModelObserver 39 // ExtensionShelfModelObserver
40 virtual void ToolstripInsertedAt(ExtensionHost* host, int index); 40 virtual void ToolstripInsertedAt(ExtensionHost* host, int index);
41 virtual void ToolstripRemovingAt(ExtensionHost* host, int index); 41 virtual void ToolstripRemovingAt(ExtensionHost* host, int index);
42 virtual void ToolstripMoved(ExtensionHost* host, 42 virtual void ToolstripMoved(ExtensionHost* host,
43 int from_index, 43 int from_index,
44 int to_index); 44 int to_index);
45 virtual void ToolstripChanged(ExtensionShelfModel::iterator toolstrip); 45 virtual void ToolstripChangedAt(ExtensionHost* host, int index);
46 virtual void ExtensionShelfEmpty(); 46 virtual void ExtensionShelfEmpty();
47 virtual void ShelfModelReloaded(); 47 virtual void ShelfModelReloaded();
48 virtual void ShelfModelDeleting();
49 48
50 private: 49 private:
51 class Toolstrip; 50 class Toolstrip;
52 51
53 // Create the contents of the extension shelf. 52 // Create the contents of the extension shelf.
54 void Init(Profile* profile); 53 void Init(Profile* profile);
55 54
56 // Overridden from NotificationObserver: 55 // Overridden from NotificationObserver:
57 virtual void Observe(NotificationType type, 56 virtual void Observe(NotificationType type,
58 const NotificationSource& source, 57 const NotificationSource& source,
(...skipping 23 matching lines...) Expand all
82 GtkWidget* shelf_hbox_; 81 GtkWidget* shelf_hbox_;
83 82
84 GtkThemeProvider* theme_provider_; 83 GtkThemeProvider* theme_provider_;
85 84
86 // Paints the background for our bookmark bar. 85 // Paints the background for our bookmark bar.
87 scoped_ptr<NineBox> background_ninebox_; 86 scoped_ptr<NineBox> background_ninebox_;
88 87
89 NotificationRegistrar registrar_; 88 NotificationRegistrar registrar_;
90 89
91 // The model representing the toolstrips on the shelf. 90 // The model representing the toolstrips on the shelf.
92 ExtensionShelfModel* model_; 91 scoped_ptr<ExtensionShelfModel> model_;
93 92
94 // Set of toolstrip views which are really on the shelf. 93 // Set of toolstrip views which are really on the shelf.
95 std::set<Toolstrip*> toolstrips_; 94 std::set<Toolstrip*> toolstrips_;
96 95
97 DISALLOW_COPY_AND_ASSIGN(ExtensionShelfGtk); 96 DISALLOW_COPY_AND_ASSIGN(ExtensionShelfGtk);
98 }; 97 };
99 98
100 #endif // CHROME_BROWSER_EXTENSION_SHELF_GTK_H_ 99 #endif // CHROME_BROWSER_EXTENSION_SHELF_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_toolstrip_api.cc ('k') | chrome/browser/gtk/extension_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698