summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/nine_box.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/nine_box.cc')
-rw-r--r--chrome/browser/gtk/nine_box.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/chrome/browser/gtk/nine_box.cc b/chrome/browser/gtk/nine_box.cc
index 26e79b1..6f6d77f 100644
--- a/chrome/browser/gtk/nine_box.cc
+++ b/chrome/browser/gtk/nine_box.cc
@@ -11,7 +11,6 @@
#include "base/gfx/gtk_util.h"
#include "base/gfx/point.h"
#include "base/logging.h"
-#include "chrome/common/notification_service.h"
namespace {
@@ -46,29 +45,6 @@ NineBox::NineBox(int top_left, int top, int top_right, int left, int center,
images_[8] = bottom_right ? rb.GetPixbufNamed(bottom_right) : NULL;
}
-NineBox::NineBox(ThemeProvider* theme_provider,
- int top_left, int top, int top_right, int left, int center,
- int right, int bottom_left, int bottom, int bottom_right)
- : theme_provider_(theme_provider) {
- image_ids_[0] = top_left;
- image_ids_[1] = top;
- image_ids_[2] = top_right;
- image_ids_[3] = left;
- image_ids_[4] = center;
- image_ids_[5] = right;
- image_ids_[6] = bottom_left;
- image_ids_[7] = bottom;
- image_ids_[8] = bottom_right;
-
- // Load images by pretending that we got a BROWSER_THEME_CHANGED
- // notification.
- Observe(NotificationType::BROWSER_THEME_CHANGED,
- NotificationService::AllSources(),
- NotificationService::NoDetails());
- registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
- NotificationService::AllSources());
-}
-
NineBox::~NineBox() {
}
@@ -214,17 +190,3 @@ void NineBox::ContourWidget(GtkWidget* widget) const {
g_object_unref(mask);
}
-
-void NineBox::Observe(NotificationType type, const NotificationSource& source,
- const NotificationDetails& details) {
- if (NotificationType::BROWSER_THEME_CHANGED != type) {
- NOTREACHED();
- return;
- }
-
- // Reload images.
- for (size_t i = 0; i < arraysize(image_ids_); ++i) {
- images_[i] = image_ids_[i] ?
- theme_provider_->GetPixbufNamed(image_ids_[i]) : NULL;
- }
-}