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

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

Issue 46078: Mac bookmark work. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/cocoa/tab_strip_controller.mm ('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 "chrome/browser/bookmarks/bookmark_drag_data.h" 8 #include "chrome/browser/bookmarks/bookmark_drag_data.h"
9 #include "chrome/browser/bookmarks/bookmark_menu_controller.h" 9 #include "chrome/browser/bookmarks/bookmark_menu_controller.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual ~ModelChangedListener() {} 67 virtual ~ModelChangedListener() {}
68 68
69 // Invoked when the model changes. Should cancel the edit and close any 69 // Invoked when the model changes. Should cancel the edit and close any
70 // dialogs. 70 // dialogs.
71 virtual void ModelChanged() = 0; 71 virtual void ModelChanged() = 0;
72 }; 72 };
73 73
74 explicit BookmarkBarView(Profile* profile, Browser* browser); 74 explicit BookmarkBarView(Profile* profile, Browser* browser);
75 virtual ~BookmarkBarView(); 75 virtual ~BookmarkBarView();
76 76
77 // Toggles whether the bookmark bar is shown only on the new tab page or on
78 // all tabs.
79 static void ToggleWhenVisible(Profile* profile);
80
81 static void RegisterUserPrefs(PrefService* prefs);
82
83 // Resets the profile. This removes any buttons for the current profile and 77 // Resets the profile. This removes any buttons for the current profile and
84 // recreates the models. 78 // recreates the models.
85 void SetProfile(Profile* profile); 79 void SetProfile(Profile* profile);
86 80
87 // Returns the current profile. 81 // Returns the current profile.
88 Profile* GetProfile() { return profile_; } 82 Profile* GetProfile() { return profile_; }
89 83
90 // Returns the current browser. 84 // Returns the current browser.
91 Browser* browser() const { return browser_; } 85 Browser* browser() const { return browser_; }
92 86
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // overflow_button_ or a button on the bar. 427 // overflow_button_ or a button on the bar.
434 views::CustomButton* throbbing_view_; 428 views::CustomButton* throbbing_view_;
435 429
436 // How many extension toolstrips we have showing in the toolbar. 430 // How many extension toolstrips we have showing in the toolbar.
437 int num_extension_toolstrips_; 431 int num_extension_toolstrips_;
438 432
439 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 433 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
440 }; 434 };
441 435
442 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_ 436 #endif // CHROME_BROWSER_VIEWS_BOOKMARK_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698