Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
Robert Sesek
2017/02/14 17:32:51
2017
spqchan
2017/02/16 15:25:51
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
|
Robert Sesek
2017/02/14 17:32:50
Header guards.
spqchan
2017/02/16 15:25:51
Done.
| |
| 5 #include <Cocoa/Cocoa.h> | |
|
Robert Sesek
2017/02/14 17:32:51
#import
spqchan
2017/02/16 15:25:51
Done.
| |
| 6 | |
| 7 #import "ui/base/cocoa/touch_bar_forward_declarations.h" | |
| 8 | |
| 9 class Browser; | |
| 10 | |
| 11 // Provides a touch bar for the browser window. This class implements the | |
| 12 // NSTouchBarDelegate and handles the items in the touch bar. | |
| 13 @interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> | |
| 14 // True is the current page is loading. Used to determine if a stop or reload | |
| 15 // button should be provided. | |
| 16 @property(nonatomic, assign) BOOL isPageLoading; | |
| 17 | |
| 18 // True if the current page is starred. Used by star touch bar button. | |
| 19 @property(nonatomic, assign) BOOL isStarred; | |
| 20 | |
| 21 // Designated initializer. | |
| 22 - (instancetype)initWithBrowser:(Browser*)browser; | |
| 23 | |
| 24 // Creates and returns a touch bar for the browser window. | |
| 25 - (NSTouchBar*)makeTouchBar; | |
| 26 | |
| 27 @end | |
| OLD | NEW |