OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #import "ui/base/cocoa/touch_bar_forward_declarations.h" |
| 11 |
| 12 class Browser; |
| 13 |
| 14 // Provides a touch bar for the browser window. This class implements the |
| 15 // NSTouchBarDelegate and handles the items in the touch bar. |
| 16 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> |
| 17 // True is the current page is loading. Used to determine if a stop or reload |
| 18 // button should be provided. |
| 19 @property(nonatomic, assign) BOOL isPageLoading; |
| 20 |
| 21 // True if the current page is starred. Used by star touch bar button. |
| 22 @property(nonatomic, assign) BOOL isStarred; |
| 23 |
| 24 // Designated initializer. |
| 25 - (instancetype)initWithBrowser:(Browser*)browser; |
| 26 |
| 27 // Creates and returns a touch bar for the browser window. |
| 28 - (NSTouchBar*)makeTouchBar; |
| 29 |
| 30 @end |
| 31 |
| 32 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_ |
OLD | NEW |