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

Side by Side 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: nits 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 unified diff | Download patch
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/cocoa/views_scrollbar_bridge.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 UI_VIEWS_COCOA_VIEWS_SCROLLBAR_BRIDGE_DELEGATE_H_
6 #define UI_VIEWS_COCOA_VIEWS_SCROLLBAR_BRIDGE_DELEGATE_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #import "base/mac/scoped_nsobject.h"
11 #include "ui/views/views_export.h"
12
13 // The delegate set to ViewsScrollbarBridge.
14 class ViewsScrollbarBridgeDelegate {
15 public:
16 // Invoked by ViewsScrollbarBridge when the system informs the process that
17 // the preferred scroller style has changed
18 virtual void OnScrollerStyleChanged() = 0;
19 };
20
21 // A bridge to NSScroller managed by NativeCocoaScrollbar. Serves as a helper
22 // class to bridge NSScroller notifications and functions to CocoaScrollbar.
23 @interface ViewsScrollbarBridge : NSObject {
24 @private
25 ViewsScrollbarBridgeDelegate* delegate_; // Weak. Owns this.
26 }
27
28 // Initializes with the given delegate and registers for notifications on
29 // scroller style changes.
30 - (id)initWithDelegate:(ViewsScrollbarBridgeDelegate*)delegate;
31
32 // Sets |delegate_| to nullptr.
33 -(void)clearDelegate;
34
35 // Returns the style of scrollers that OSX is using.
36 + (NSScrollerStyle)getPreferredScrollerStyle;
37
38 @end
39
40 #endif
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/cocoa/views_scrollbar_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698