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

Unified Diff: ui/views/cocoa/views_scrollbar_bridge.h

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | ui/views/cocoa/views_scrollbar_bridge.mm » ('j') | ui/views/cocoa/views_scrollbar_bridge.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/views_scrollbar_bridge.h
diff --git a/ui/views/cocoa/views_scrollbar_bridge.h b/ui/views/cocoa/views_scrollbar_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f475d8dafee24842246c6957bb76743cc4b8315
--- /dev/null
+++ b/ui/views/cocoa/views_scrollbar_bridge.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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 UI_VIEWS_COCOA_VIEWS_SCROLLBAR_BRIDGE_DELEGATE_H_
+#define UI_VIEWS_COCOA_VIEWS_SCROLLBAR_BRIDGE_DELEGATE_H_
+
+#import <Cocoa/Cocoa.h>
+
+#import "base/mac/scoped_nsobject.h"
+#include "ui/views/views_export.h"
+
+// The delegate set to ViewsScrollbarBridge.
+class ViewsScrollbarBridgeDelegate {
+ public:
+ virtual void OnScrollerStyleChanged() = 0;
tapted 2016/02/11 08:46:17 nit: needs a comment. I'd say something like, `Inv
spqchan 2016/02/13 01:39:23 Done.
+};
+
+// A bridge to NSScroller managed by NativeCocoaScrollbar. Serves as a helper
+// class to bridge NSScroller notifications and functions to
+// NativeCocoaScrollbar.
+@interface ViewsScrollbarBridge : NSObject {
+ @private
+ ViewsScrollbarBridgeDelegate* delegate_; // Weak. Owns this.
+}
+
+// Sets the |delegate|.
+- (void)setDelegate:(ViewsScrollbarBridgeDelegate*)delegate;
+
+// Returns the style of scrollers that OSX is using.
+- (NSScrollerStyle)getPreferredScrollerStyle;
tapted 2016/02/11 08:46:17 + class function?
spqchan 2016/02/13 01:39:23 Done.
+
+@end
+
+#endif
« no previous file with comments | « no previous file | ui/views/cocoa/views_scrollbar_bridge.mm » ('j') | ui/views/cocoa/views_scrollbar_bridge.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698