Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_touch_bar.h |
| diff --git a/chrome/browser/ui/cocoa/browser_window_touch_bar.h b/chrome/browser/ui/cocoa/browser_window_touch_bar.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..708fc28dabbb5bfafcfc331ce2907ae566051f1d |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/browser_window_touch_bar.h |
| @@ -0,0 +1,27 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
|
Robert Sesek
2017/02/14 17:32:50
Header guards.
spqchan
2017/02/16 15:25:51
Done.
|
| +#include <Cocoa/Cocoa.h> |
|
Robert Sesek
2017/02/14 17:32:51
#import
spqchan
2017/02/16 15:25:51
Done.
|
| + |
| +#import "ui/base/cocoa/touch_bar_forward_declarations.h" |
| + |
| +class Browser; |
| + |
| +// Provides a touch bar for the browser window. This class implements the |
| +// NSTouchBarDelegate and handles the items in the touch bar. |
| +@interface BrowserWindowTouchBar : NSObject<NSTouchBarDelegate> |
| +// True is the current page is loading. Used to determine if a stop or reload |
| +// button should be provided. |
| +@property(nonatomic, assign) BOOL isPageLoading; |
| + |
| +// True if the current page is starred. Used by star touch bar button. |
| +@property(nonatomic, assign) BOOL isStarred; |
| + |
| +// Designated initializer. |
| +- (instancetype)initWithBrowser:(Browser*)browser; |
| + |
| +// Creates and returns a touch bar for the browser window. |
| +- (NSTouchBar*)makeTouchBar; |
| + |
| +@end |