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

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: fix build (Android & unit_tests) Created 5 years, 10 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, the managed bookmarks folder, and the supervised bookmarks
319 // folder.
316 - (void)updateExtraButtonsVisibility; 320 - (void)updateExtraButtonsVisibility;
317 321
318 // Hides or shows the bookmark bar depending on the current state. 322 // Hides or shows the bookmark bar depending on the current state.
319 - (void)updateHiddenState; 323 - (void)updateHiddenState;
320 324
321 // Turn on or off the bookmark bar and prevent or reallow its appearance. On 325 // 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 326 // disable, toggle off if shown. On enable, show only if needed. App and popup
323 // windows do not show a bookmark bar. 327 // windows do not show a bookmark bar.
324 - (void)setBookmarkBarEnabled:(BOOL)enabled; 328 - (void)setBookmarkBarEnabled:(BOOL)enabled;
325 329
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point; 422 - (BookmarkButton*)buttonForDroppingOnAtPoint:(NSPoint)point;
419 - (BOOL)isEventAnExitEvent:(NSEvent*)event; 423 - (BOOL)isEventAnExitEvent:(NSEvent*)event;
420 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX; 424 - (BOOL)shrinkOrHideView:(NSView*)view forMaxX:(CGFloat)maxViewX;
421 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node; 425 - (void)unhighlightBookmark:(const bookmarks::BookmarkNode*)node;
422 426
423 // The following are for testing purposes only and are not used internally. 427 // The following are for testing purposes only and are not used internally.
424 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node; 428 - (NSMenu *)menuForFolderNode:(const bookmarks::BookmarkNode*)node;
425 @end 429 @end
426 430
427 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_ 431 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698