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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 161293002: mac: Allows extensions to hide the bookmark page menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure changes only apply to OSX. Created 6 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_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 // Called when an overlapped view is shown. This is used to update the 342 // Called when an overlapped view is shown. This is used to update the
343 // allowOverlappingViews state. Currently used for history overlay and 343 // allowOverlappingViews state. Currently used for history overlay and
344 // confirm bubble. 344 // confirm bubble.
345 - (void)onOverlappedViewShown; 345 - (void)onOverlappedViewShown;
346 346
347 // Called when a history overlay is hidden. This is used to update the 347 // Called when a history overlay is hidden. This is used to update the
348 // allowOverlappingViews state. Currently used for history overlay and 348 // allowOverlappingViews state. Currently used for history overlay and
349 // confirm bubble. 349 // confirm bubble.
350 - (void)onOverlappedViewHidden; 350 - (void)onOverlappedViewHidden;
351 351
352 // Activates the page action for the extension that has the given id.
353 - (void)activatePageAction:(const std::string&)extension_id;
354
355 // Activates the browser action for the extension that has the given id.
356 - (void)activateBrowserAction:(const std::string&)extension_id;
357
352 @end // @interface BrowserWindowController 358 @end // @interface BrowserWindowController
353 359
354 360
355 // Methods having to do with the window type (normal/popup/app, and whether the 361 // Methods having to do with the window type (normal/popup/app, and whether the
356 // window has various features; fullscreen and presentation mode methods are 362 // window has various features; fullscreen and presentation mode methods are
357 // separate). 363 // separate).
358 @interface BrowserWindowController(WindowType) 364 @interface BrowserWindowController(WindowType)
359 365
360 // Determines whether this controller's window supports a given feature (i.e., 366 // Determines whether this controller's window supports a given feature (i.e.,
361 // whether a given feature is or can be shown in the window). 367 // whether a given feature is or can be shown in the window).
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // positioned relative to. 506 // positioned relative to.
501 - (NSRect)omniboxPopupAnchorRect; 507 - (NSRect)omniboxPopupAnchorRect;
502 508
503 // Force a layout of info bars. 509 // Force a layout of info bars.
504 - (void)layoutInfoBars; 510 - (void)layoutInfoBars;
505 511
506 @end // @interface BrowserWindowController (TestingAPI) 512 @end // @interface BrowserWindowController (TestingAPI)
507 513
508 514
509 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 515 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698