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

Unified Diff: chrome/browser/gtk/extension_shelf_gtk.h

Issue 174564: Polish the look of Linux extension shelf. (Closed)
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/extension_shelf_gtk.cc » ('j') | chrome/browser/gtk/extension_shelf_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/extension_shelf_gtk.h
diff --git a/chrome/browser/gtk/extension_shelf_gtk.h b/chrome/browser/gtk/extension_shelf_gtk.h
index 51800003e883971f4483fe4c4312d56595260a57..550f9ecc90080c3c5d221e4a589a74315b027c8f 100644
--- a/chrome/browser/gtk/extension_shelf_gtk.h
+++ b/chrome/browser/gtk/extension_shelf_gtk.h
@@ -11,6 +11,7 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/extensions/extension_shelf_model.h"
+#include "chrome/common/notification_registrar.h"
#include "chrome/common/owned_widget_gtk.h"
class Browser;
@@ -20,7 +21,8 @@ class NineBox;
class Profile;
struct GtkThemeProvider;
-class ExtensionShelfGtk : public ExtensionShelfModelObserver {
+class ExtensionShelfGtk : public ExtensionShelfModelObserver,
+ public NotificationObserver {
public:
ExtensionShelfGtk(Profile* profile, Browser* browser);
virtual ~ExtensionShelfGtk();
@@ -44,6 +46,11 @@ class ExtensionShelfGtk : public ExtensionShelfModelObserver {
virtual void ShelfModelReloaded();
virtual void ShelfModelDeleting();
+ // NotificationObserver
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
class Toolstrip;
@@ -63,6 +70,9 @@ class ExtensionShelfGtk : public ExtensionShelfModelObserver {
Browser* browser_;
+ // Top level event box which draws the one pixel border.
+ GtkWidget* top_border_;
+
// Contains |shelf_hbox_|. Event box exists to prevent leakage of
// background color from the toplevel application window's GDK window.
OwnedWidgetGtk event_box_;
@@ -78,6 +88,8 @@ class ExtensionShelfGtk : public ExtensionShelfModelObserver {
// Set of toolstrip views which are really on the shelf.
std::set<Toolstrip*> toolstrips_;
+ NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionShelfGtk);
};
« no previous file with comments | « no previous file | chrome/browser/gtk/extension_shelf_gtk.cc » ('j') | chrome/browser/gtk/extension_shelf_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698