OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BOOKMARK_BAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
6 #define CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // Get the current height of the bookmark bar. | 61 // Get the current height of the bookmark bar. |
62 int GetHeight(); | 62 int GetHeight(); |
63 | 63 |
64 // Returns true if the bookmark bar is showing the close animation. | 64 // Returns true if the bookmark bar is showing the close animation. |
65 bool IsClosing(); | 65 bool IsClosing(); |
66 | 66 |
67 // Returns true if the bookmarks bar preference is set to 'always show'. | 67 // Returns true if the bookmarks bar preference is set to 'always show'. |
68 bool IsAlwaysShown(); | 68 bool IsAlwaysShown(); |
69 | 69 |
| 70 // Alerts us that the theme changed, and we might need to change theme images. |
| 71 void UserChangedTheme(Profile* profile); |
| 72 |
70 // AnimationDelegate implementation ------------------------------------------ | 73 // AnimationDelegate implementation ------------------------------------------ |
71 virtual void AnimationProgressed(const Animation* animation); | 74 virtual void AnimationProgressed(const Animation* animation); |
72 virtual void AnimationEnded(const Animation* animation); | 75 virtual void AnimationEnded(const Animation* animation); |
73 | 76 |
74 private: | 77 private: |
75 // Helper function which generates GtkToolItems for |bookmark_toolbar_|. | 78 // Helper function which generates GtkToolItems for |bookmark_toolbar_|. |
76 void CreateAllBookmarkButtons(const BookmarkNode* node); | 79 void CreateAllBookmarkButtons(const BookmarkNode* node); |
77 | 80 |
78 // Sets the visibility of the instructional text based on whether there are | 81 // Sets the visibility of the instructional text based on whether there are |
79 // any bookmarks in |node|. |node| is assumed to be the bookmarks bar node. | 82 // any bookmarks in |node|. |node| is assumed to be the bookmarks bar node. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // displayed yet. | 233 // displayed yet. |
231 scoped_ptr<BookmarkMenuController> current_menu_; | 234 scoped_ptr<BookmarkMenuController> current_menu_; |
232 | 235 |
233 // Paints the background for our bookmark bar. | 236 // Paints the background for our bookmark bar. |
234 scoped_ptr<NineBox> background_ninebox_; | 237 scoped_ptr<NineBox> background_ninebox_; |
235 | 238 |
236 scoped_ptr<SlideAnimation> slide_animation_; | 239 scoped_ptr<SlideAnimation> slide_animation_; |
237 }; | 240 }; |
238 | 241 |
239 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ | 242 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
OLD | NEW |