| Index: chrome/browser/gtk/nine_box.h
|
| ===================================================================
|
| --- chrome/browser/gtk/nine_box.h (revision 23643)
|
| +++ chrome/browser/gtk/nine_box.h (working copy)
|
| @@ -7,12 +7,6 @@
|
|
|
| #include <gtk/gtk.h>
|
|
|
| -#include "chrome/common/notification_observer.h"
|
| -#include "chrome/common/notification_registrar.h"
|
| -#include "chrome/common/notification_type.h"
|
| -
|
| -class ThemeProvider;
|
| -
|
| // A NineBox manages a set of source images representing a 3x3 grid, where
|
| // non-corner images can be tiled to make a larger image. It's used to
|
| // use bitmaps for constructing image-based resizable widgets like buttons.
|
| @@ -24,18 +18,12 @@
|
| //
|
| // TODO(port): add support for caching server-side pixmaps of prerendered
|
| // nineboxes.
|
| -class NineBox : public NotificationObserver {
|
| +class NineBox {
|
| public:
|
| // Construct a NineBox with nine images. Images are specified using resource
|
| // ids that will be passed to the resource bundle. Use 0 for no image.
|
| NineBox(int top_left, int top, int top_right, int left, int center, int right,
|
| int bottom_left, int bottom, int bottom_right);
|
| -
|
| - // Same as above, but use themed images.
|
| - 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);
|
| -
|
| ~NineBox();
|
|
|
| // Render the NineBox to |dst|.
|
| @@ -56,20 +44,8 @@
|
| // needed).
|
| void ContourWidget(GtkWidget* widget) const;
|
|
|
| - // Provide NotificationObserver implementation.
|
| - virtual void Observe(NotificationType type,
|
| - const NotificationSource& source,
|
| - const NotificationDetails& details);
|
| private:
|
| GdkPixbuf* images_[9];
|
| -
|
| - // We need to remember the image ids that the user passes in and the theme
|
| - // provider so we can reload images if the user changes theme.
|
| - int image_ids_[9];
|
| - ThemeProvider* theme_provider_;
|
| -
|
| - // Used to listen for theme change notifications.
|
| - NotificationRegistrar registrar_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_GTK_NINE_BOX_H_
|
|
|