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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h

Issue 769153007: Managed bookmarks for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: string change Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 NSRect originalNoItemsRect_; // Original, pre-resized field rect. 226 NSRect originalNoItemsRect_; // Original, pre-resized field rect.
227 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect. 227 NSRect originalImportBookmarksRect_; // Original, pre-resized field rect.
228 228
229 // "Apps" button on the left side. 229 // "Apps" button on the left side.
230 base::scoped_nsobject<BookmarkButton> appsPageShortcutButton_; 230 base::scoped_nsobject<BookmarkButton> appsPageShortcutButton_;
231 231
232 // "Managed bookmarks" button on the left side, next to the apps button. 232 // "Managed bookmarks" button on the left side, next to the apps button.
233 base::scoped_nsobject<BookmarkButton> managedBookmarksButton_; 233 base::scoped_nsobject<BookmarkButton> managedBookmarksButton_;
234 234
235 // "Supervised bookmarks" button on the left side, next to the apps button.
236 base::scoped_nsobject<BookmarkButton> supervisedBookmarksButton_;
237
235 // "Other bookmarks" button on the right side. 238 // "Other bookmarks" button on the right side.
236 base::scoped_nsobject<BookmarkButton> otherBookmarksButton_; 239 base::scoped_nsobject<BookmarkButton> otherBookmarksButton_;
237 240
238 // When doing a drag, this is folder button "hovered over" which we 241 // When doing a drag, this is folder button "hovered over" which we
239 // may want to open after a short delay. There are cases where a 242 // may want to open after a short delay. There are cases where a
240 // mouse-enter can open a folder (e.g. if the menus are "active") 243 // mouse-enter can open a folder (e.g. if the menus are "active")
241 // but that doesn't use this variable or need a delay so "hover" is 244 // but that doesn't use this variable or need a delay so "hover" is
242 // the wrong term. 245 // the wrong term.
243 base::scoped_nsobject<BookmarkButton> hoverButton_; 246 base::scoped_nsobject<BookmarkButton> hoverButton_;
244 247
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 - (BookmarkContextMenuCocoaController*)menuController; 307 - (BookmarkContextMenuCocoaController*)menuController;
305 308
306 // Updates the bookmark bar (from its current, possibly in-transition) state to 309 // Updates the bookmark bar (from its current, possibly in-transition) state to
307 // the new state. 310 // the new state.
308 - (void)updateState:(BookmarkBar::State)newState 311 - (void)updateState:(BookmarkBar::State)newState
309 changeType:(BookmarkBar::AnimateChangeType)changeType; 312 changeType:(BookmarkBar::AnimateChangeType)changeType;
310 313
311 // Update the visible state of the bookmark bar. 314 // Update the visible state of the bookmark bar.
312 - (void)updateVisibility; 315 - (void)updateVisibility;
313 316
314 // Update the visible state of the extra butons on the bookmark bar: the 317 // Update the visible state of the extra buttons on the bookmark bar: the
315 // apps shortcut and the managed bookmarks folder. 318 // apps shortcut and the managed and supervised bookmarks folders.
Alexei Svitkine (slow) 2015/01/23 16:06:13 Nit: replace the first "and" with a comma since th
Marc Treib 2015/01/26 12:27:42 Done.
316 - (void)updateExtraButtonsVisibility; 319 - (void)updateExtraButtonsVisibility;
317 320
318 // Hides or shows the bookmark bar depending on the current state. 321 // Hides or shows the bookmark bar depending on the current state.
319 - (void)updateHiddenState; 322 - (void)updateHiddenState;
320 323
321 // Turn on or off the bookmark bar and prevent or reallow its appearance. On 324 // Turn on or off the bookmark bar and prevent or reallow its appearance. On
322 // disable, toggle off if shown. On enable, show only if needed. App and popup 325 // disable, toggle off if shown. On enable, show only if needed. App and popup
323 // windows do not show a bookmark bar. 326 // windows do not show a bookmark bar.
324 - (void)setBookmarkBarEnabled:(BOOL)enabled; 327 - (void)setBookmarkBarEnabled:(BOOL)enabled;
325 328
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 418 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
416 - (BOOL)isEventAnExitEvent:(NSEvent*)event; 419 - (BOOL)isEventAnExitEvent:(NSEvent*)event;
417 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 420 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
418 - (void)unhighlightBookmark:(const BookmarkNode*)node; 421 - (void)unhighlightBookmark:(const BookmarkNode*)node;
419 422
420 // The following are for testing purposes only and are not used internally. 423 // The following are for testing purposes only and are not used internally.
421 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node; 424 - (NSMenu *)menuForFolderNode:(const BookmarkNode*)node;
422 @end 425 @end
423 426
424 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 427 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698