diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 20:47:25 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-20 20:47:25 +0000 |
commit | 6d7c8059b0b3c9e5f079bb8f0569b0de6a115330 (patch) | |
tree | 93b51fcbae522fdd93b0d8031922ab131a9eb2ac /chrome/browser/extensions/extension_shelf.h | |
parent | b674dc73f0b635aa2f7be660153e5b05f6a9b593 (diff) | |
download | chromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.zip chromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.tar.gz chromium_src-6d7c8059b0b3c9e5f079bb8f0569b0de6a115330.tar.bz2 |
Hook up more of extension uninstall.
Also removed all external dependencies from ExtensionsService.
It now only sends out notifications, which other services
consume. This should allow us to unit test the
ExtensionsService frontend, but I haven't added that yet.
Review URL: http://codereview.chromium.org/113493
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_shelf.h')
-rw-r--r-- | chrome/browser/extensions/extension_shelf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_shelf.h b/chrome/browser/extensions/extension_shelf.h index 4bc88eb..59ef31d 100644 --- a/chrome/browser/extensions/extension_shelf.h +++ b/chrome/browser/extensions/extension_shelf.h @@ -11,6 +11,7 @@ #include "chrome/browser/extensions/extensions_service.h" #include "chrome/browser/views/browser_bubble.h" #include "chrome/common/notification_observer.h" +#include "chrome/common/notification_registrar.h" #include "views/view.h" class Browser; @@ -27,7 +28,6 @@ class ExtensionShelf : public views::View, public BrowserBubble::Delegate { public: explicit ExtensionShelf(Browser* browser); - virtual ~ExtensionShelf(); // Return the current active ExtensionShelfHandle (if any). BrowserBubble* GetHandle(); @@ -63,6 +63,9 @@ class ExtensionShelf : public views::View, // Inits the background bitmap. void InitBackground(gfx::Canvas* canvas, const SkRect& subset); + // Removes any toolstrips associated with an extension. + bool RemoveExtensionViews(Extension* extension); + // Show / Hide the shelf handle. void ShowShelfHandle(); void DoShowShelfHandle(); @@ -75,6 +78,9 @@ class ExtensionShelf : public views::View, // Which browser window this shelf is in. Browser* browser_; + // Manages our notification registrations. + NotificationRegistrar registrar_; + // Background bitmap to draw under extension views. SkBitmap background_; |