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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 891003004: MacViews: Implement SetCursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150129-MacViews-Bringup5
Patch Set: assign -> retain Created 5 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/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Acquiring mouse capture first steals capture from any existing 76 // Acquiring mouse capture first steals capture from any existing
77 // CocoaMouseCaptureDelegate, then captures all mouse events until released. 77 // CocoaMouseCaptureDelegate, then captures all mouse events until released.
78 void AcquireCapture(); 78 void AcquireCapture();
79 void ReleaseCapture(); 79 void ReleaseCapture();
80 bool HasCapture(); 80 bool HasCapture();
81 81
82 // See views::Widget. 82 // See views::Widget.
83 void SetNativeWindowProperty(const char* key, void* value); 83 void SetNativeWindowProperty(const char* key, void* value);
84 void* GetNativeWindowProperty(const char* key) const; 84 void* GetNativeWindowProperty(const char* key) const;
85 85
86 // Sets the cursor associated with the NSWindow. Retains |cursor|.
87 void SetCursor(NSCursor* cursor);
88
86 // Called internally by the NSWindowDelegate when the window is closing. 89 // Called internally by the NSWindowDelegate when the window is closing.
87 void OnWindowWillClose(); 90 void OnWindowWillClose();
88 91
89 // Called by the NSWindowDelegate when a fullscreen operation begins. If 92 // Called by the NSWindowDelegate when a fullscreen operation begins. If
90 // |target_fullscreen_state| is true, the target state is fullscreen. 93 // |target_fullscreen_state| is true, the target state is fullscreen.
91 // Otherwise, a transition has begun to come out of fullscreen. 94 // Otherwise, a transition has begun to come out of fullscreen.
92 void OnFullscreenTransitionStart(bool target_fullscreen_state); 95 void OnFullscreenTransitionStart(bool target_fullscreen_state);
93 96
94 // Called when a fullscreen transition completes. If target_fullscreen_state() 97 // Called when a fullscreen transition completes. If target_fullscreen_state()
95 // does not match |actual_fullscreen_state|, a new transition will begin. 98 // does not match |actual_fullscreen_state|, a new transition will begin.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // If true, the window is either visible, or wants to be visible but is 239 // If true, the window is either visible, or wants to be visible but is
237 // currently hidden due to having a hidden parent. 240 // currently hidden due to having a hidden parent.
238 bool wants_to_be_visible_; 241 bool wants_to_be_visible_;
239 242
240 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 243 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
241 }; 244 };
242 245
243 } // namespace views 246 } // namespace views
244 247
245 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 248 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698