OLD | NEW |
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 | 14 |
14 // 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 |
15 // NSTouchBarDelegate and handles the items in the touch bar. | 16 // NSTouchBarDelegate and handles the items in the touch bar. |
16 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> | 17 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> |
17 // 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 |
18 // button should be provided. | 19 // button should be provided. |
19 @property(nonatomic, assign) BOOL isPageLoading; | 20 @property(nonatomic, assign) BOOL isPageLoading; |
20 | 21 |
21 // 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. |
22 @property(nonatomic, assign) BOOL isStarred; | 23 @property(nonatomic, assign) BOOL isStarred; |
23 | 24 |
24 // Designated initializer. | 25 // Designated initializer. |
25 - (instancetype)initWithBrowser:(Browser*)browser; | 26 - (instancetype)initWithBrowser:(Browser*)browser |
| 27 browserWindowController:(BrowserWindowController*)bwc; |
26 | 28 |
27 // Creates and returns a touch bar for the browser window. | 29 // Creates and returns a touch bar for the browser window. |
28 - (NSTouchBar*)makeTouchBar; | 30 - (NSTouchBar*)makeTouchBar; |
29 | 31 |
30 @end | 32 @end |
31 | 33 |
32 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ | 34 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ |
OLD | NEW |