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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // the bookmark bar. | 70 // the bookmark bar. |
71 void SetPageNavigator(PageNavigator* navigator); | 71 void SetPageNavigator(PageNavigator* navigator); |
72 | 72 |
73 // Create the contents of the bookmark bar. | 73 // Create the contents of the bookmark bar. |
74 void Init(Profile* profile); | 74 void Init(Profile* profile); |
75 | 75 |
76 // Whether the current page is the New Tag Page (which requires different | 76 // Whether the current page is the New Tag Page (which requires different |
77 // rendering). | 77 // rendering). |
78 bool OnNewTabPage(); | 78 bool OnNewTabPage(); |
79 | 79 |
80 // True if we're on an extension apps page. | |
81 bool OnAppsPage() const; | |
82 | |
83 // Change the visibility of the bookmarks bar. (Starts out hidden, per GTK's | 80 // Change the visibility of the bookmarks bar. (Starts out hidden, per GTK's |
84 // default behaviour). There are three visiblity states: | 81 // default behaviour). There are three visiblity states: |
85 // | 82 // |
86 // Showing - bookmark bar is fully visible. | 83 // Showing - bookmark bar is fully visible. |
87 // Hidden - bookmark bar is hidden except for a few pixels that give | 84 // Hidden - bookmark bar is hidden except for a few pixels that give |
88 // extra padding to the bottom of the toolbar. Buttons are not | 85 // extra padding to the bottom of the toolbar. Buttons are not |
89 // clickable. | 86 // clickable. |
90 // Fullscreen - bookmark bar is fully hidden. | 87 // Fullscreen - bookmark bar is fully hidden. |
91 void Show(bool animate); | 88 void Show(bool animate); |
92 void Hide(bool animate); | 89 void Hide(bool animate); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 gfx::Point last_pressed_coordinates_; | 368 gfx::Point last_pressed_coordinates_; |
372 | 369 |
373 // The currently throbbing widget. This is NULL if no widget is throbbing. | 370 // The currently throbbing widget. This is NULL if no widget is throbbing. |
374 // We track it because we only want to allow one widget to throb at a time. | 371 // We track it because we only want to allow one widget to throb at a time. |
375 GtkWidget* throbbing_widget_; | 372 GtkWidget* throbbing_widget_; |
376 | 373 |
377 ScopedRunnableMethodFactory<BookmarkBarGtk> method_factory_; | 374 ScopedRunnableMethodFactory<BookmarkBarGtk> method_factory_; |
378 }; | 375 }; |
379 | 376 |
380 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ | 377 #endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_ |
OLD | NEW |