| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NINE_BOX_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_NINE_BOX_H_ |
| 6 #define CHROME_BROWSER_GTK_NINE_BOX_H_ | 6 #define CHROME_BROWSER_UI_GTK_NINE_BOX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 // A NineBox manages a set of source images representing a 3x3 grid, where | 11 // A NineBox manages a set of source images representing a 3x3 grid, where |
| 12 // non-corner images can be tiled to make a larger image. It's used to | 12 // non-corner images can be tiled to make a larger image. It's used to |
| 13 // use bitmaps for constructing image-based resizable widgets like buttons. | 13 // use bitmaps for constructing image-based resizable widgets like buttons. |
| 14 // | 14 // |
| 15 // If you want just a vertical image that stretches in height but is fixed | 15 // If you want just a vertical image that stretches in height but is fixed |
| 16 // in width, only pass in images for the left column (leave others NULL). | 16 // in width, only pass in images for the left column (leave others NULL). |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // three images are used. | 51 // three images are used. |
| 52 // TODO(estade): extend this function to use all 9 images (if it's ever | 52 // TODO(estade): extend this function to use all 9 images (if it's ever |
| 53 // needed). | 53 // needed). |
| 54 void ContourWidget(GtkWidget* widget) const; | 54 void ContourWidget(GtkWidget* widget) const; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 GdkPixbuf* images_[9]; | 57 GdkPixbuf* images_[9]; |
| 58 bool unref_pixbufs_on_destroy_; | 58 bool unref_pixbufs_on_destroy_; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_GTK_NINE_BOX_H_ | 61 #endif // CHROME_BROWSER_UI_GTK_NINE_BOX_H_ |
| OLD | NEW |