OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_BOOKMARK_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
7 | 7 |
8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // ClearModelChangedListenerIfEquals method. | 60 // ClearModelChangedListenerIfEquals method. |
61 class ModelChangedListener { | 61 class ModelChangedListener { |
62 public: | 62 public: |
63 virtual ~ModelChangedListener() {} | 63 virtual ~ModelChangedListener() {} |
64 | 64 |
65 // Invoked when the model changes. Should cancel the edit and close any | 65 // Invoked when the model changes. Should cancel the edit and close any |
66 // dialogs. | 66 // dialogs. |
67 virtual void ModelChanged() = 0; | 67 virtual void ModelChanged() = 0; |
68 }; | 68 }; |
69 | 69 |
| 70 static const int kNewtabBarHeight; |
| 71 |
70 explicit BookmarkBarView(Profile* profile, Browser* browser); | 72 explicit BookmarkBarView(Profile* profile, Browser* browser); |
71 virtual ~BookmarkBarView(); | 73 virtual ~BookmarkBarView(); |
72 | 74 |
73 // Resets the profile. This removes any buttons for the current profile and | 75 // Resets the profile. This removes any buttons for the current profile and |
74 // recreates the models. | 76 // recreates the models. |
75 void SetProfile(Profile* profile); | 77 void SetProfile(Profile* profile); |
76 | 78 |
77 // Returns the current profile. | 79 // Returns the current profile. |
78 Profile* GetProfile() { return profile_; } | 80 Profile* GetProfile() { return profile_; } |
79 | 81 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // overflow_button_ or a button on the bar. | 423 // overflow_button_ or a button on the bar. |
422 views::CustomButton* throbbing_view_; | 424 views::CustomButton* throbbing_view_; |
423 | 425 |
424 // Background for extension toolstrips. | 426 // Background for extension toolstrips. |
425 SkBitmap toolstrip_background_; | 427 SkBitmap toolstrip_background_; |
426 | 428 |
427 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 429 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
428 }; | 430 }; |
429 | 431 |
430 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ | 432 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |