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

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

Issue 2695493002: [Mac] Touch Bar support for default browser window state (Closed)
Patch Set: Rebased Created 3 years, 10 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.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