Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Side by Side Diff: chrome/browser/views/bookmark_bar_view.h

Issue 115910: Allow themes to change the background of the new tab page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/new_tab_theme.css ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/resources/new_tab_theme.css ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698