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

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

Issue 2251123002: macviews: honor system control tint setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use luminance Created 4 years, 4 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/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 9
10 #include <memory> 10 #include <memory>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Called once by the NSWindowDelegate when the position of the window has 136 // Called once by the NSWindowDelegate when the position of the window has
137 // changed. 137 // changed.
138 void OnPositionChanged(); 138 void OnPositionChanged();
139 139
140 // Called by the NSWindowDelegate when the visibility of the window may have 140 // Called by the NSWindowDelegate when the visibility of the window may have
141 // changed. For example, due to a (de)miniaturize operation, or the window 141 // changed. For example, due to a (de)miniaturize operation, or the window
142 // being reordered in (or out of) the screen list. 142 // being reordered in (or out of) the screen list.
143 void OnVisibilityChanged(); 143 void OnVisibilityChanged();
144 144
145 // Called by the NSWindowDelegate when the system control tint changes.
146 void OnSystemControlTintChanged();
147
145 // Called by the NSWindowDelegate on a scale factor or color space change. 148 // Called by the NSWindowDelegate on a scale factor or color space change.
146 void OnBackingPropertiesChanged(); 149 void OnBackingPropertiesChanged();
147 150
148 // Called by the NSWindowDelegate when the window becomes or resigns key. 151 // Called by the NSWindowDelegate when the window becomes or resigns key.
149 void OnWindowKeyStatusChangedTo(bool is_key); 152 void OnWindowKeyStatusChangedTo(bool is_key);
150 153
151 // Called by NSWindowDelegate when the application receives a mouse-down, but 154 // Called by NSWindowDelegate when the application receives a mouse-down, but
152 // before the event is processed by NSWindows. Returning true here will cause 155 // before the event is processed by NSWindows. Returning true here will cause
153 // the event to be cancelled and reposted at the CGSessionEventTap level. This 156 // the event to be cancelled and reposted at the CGSessionEventTap level. This
154 // is used to determine whether a mouse-down should drag the window. 157 // is used to determine whether a mouse-down should drag the window.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 bool invalidate_shadow_on_frame_swap_ = false; 315 bool invalidate_shadow_on_frame_swap_ = false;
313 316
314 AssociatedViews associated_views_; 317 AssociatedViews associated_views_;
315 318
316 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 319 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
317 }; 320 };
318 321
319 } // namespace views 322 } // namespace views
320 323
321 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 324 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698