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

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

Issue 2816743006: [Mac] Fullscreen Touch Bar Support (Closed)
Patch Set: Moved ScopedFeatureList Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_TOUCH_BAR_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "ui/base/cocoa/touch_bar_forward_declarations.h" 10 #import "ui/base/cocoa/touch_bar_forward_declarations.h"
11 11
12 class Browser; 12 class Browser;
13 @class BrowserWindowController; 13 @class BrowserWindowController;
14 14
15 // Provides a touch bar for the browser window. This class implements the 15 // Provides a touch bar for the browser window. This class implements the
16 // NSTouchBarDelegate and handles the items in the touch bar. 16 // NSTouchBarDelegate and handles the items in the touch bar.
17 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> 17 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate>
18 // True is the current page is loading. Used to determine if a stop or reload 18 // True is the current page is loading. Used to determine if a stop or reload
19 // button should be provided. 19 // button should be provided.
20 @property(nonatomic, assign) BOOL isPageLoading; 20 @property(nonatomic, assign) BOOL isPageLoading;
21 21
22 // True if the current page is starred. Used by star touch bar button. 22 // True if the current page is starred. Used by star touch bar button.
23 @property(nonatomic, assign) BOOL isStarred; 23 @property(nonatomic, assign) BOOL isStarred;
24 24
25 // Returns a touch bar item identifier for the given |id|.
26 + (NSString*)touchBarIdForItemId:(NSString*)id;
27
25 // Designated initializer. 28 // Designated initializer.
26 - (instancetype)initWithBrowser:(Browser*)browser 29 - (instancetype)initWithBrowser:(Browser*)browser
27 browserWindowController:(BrowserWindowController*)bwc; 30 browserWindowController:(BrowserWindowController*)bwc;
28 31
29 // Creates and returns a touch bar for the browser window. 32 // Creates and returns a touch bar for the browser window.
30 - (NSTouchBar*)makeTouchBar; 33 - (NSTouchBar*)makeTouchBar;
31 34
32 @end 35 @end
33 36
34 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ 37 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/browser_window_touch_bar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698