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

Unified 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 side-by-side diff with in-line comments
Download patch
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..5e67065066985874d934a739d16cb065df83c7d9
--- /dev/null
+++ b/chrome/browser/ui/cocoa/browser_window_touch_bar.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
+#define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
+
+#import <Cocoa/Cocoa.h>
+
+#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
+
+#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_TOUCH_BAR_H_
« 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