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

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

Issue 1627193004: MacViews: Implement BridgedNativeWidget::PrepareForLayerBoundsChange(). (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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 #import "ui/views/cocoa/bridged_native_widget.h" 5 #import "ui/views/cocoa/bridged_native_widget.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 NOTIMPLEMENTED(); 911 NOTIMPLEMENTED();
912 } 912 }
913 913
914 void BridgedNativeWidget::OnDeviceScaleFactorChanged( 914 void BridgedNativeWidget::OnDeviceScaleFactorChanged(
915 float device_scale_factor) { 915 float device_scale_factor) {
916 native_widget_mac_->GetWidget()->DeviceScaleFactorChanged( 916 native_widget_mac_->GetWidget()->DeviceScaleFactorChanged(
917 device_scale_factor); 917 device_scale_factor);
918 } 918 }
919 919
920 base::Closure BridgedNativeWidget::PrepareForLayerBoundsChange() { 920 base::Closure BridgedNativeWidget::PrepareForLayerBoundsChange() {
921 NOTIMPLEMENTED();
922 return base::Closure(); 921 return base::Closure();
923 } 922 }
924 923
925 //////////////////////////////////////////////////////////////////////////////// 924 ////////////////////////////////////////////////////////////////////////////////
926 // BridgedNativeWidget, AcceleratedWidgetMac: 925 // BridgedNativeWidget, AcceleratedWidgetMac:
927 926
928 NSView* BridgedNativeWidget::AcceleratedWidgetGetNSView() const { 927 NSView* BridgedNativeWidget::AcceleratedWidgetGetNSView() const {
929 return compositor_superview_; 928 return compositor_superview_;
930 } 929 }
931 930
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 [bridged_view_ setMouseDownCanMoveWindow:draggable]; 1210 [bridged_view_ setMouseDownCanMoveWindow:draggable];
1212 // AppKit will not update its cache of mouseDownCanMoveWindow unless something 1211 // AppKit will not update its cache of mouseDownCanMoveWindow unless something
1213 // changes. Previously we tried adding an NSView and removing it, but for some 1212 // changes. Previously we tried adding an NSView and removing it, but for some
1214 // reason it required reposting the mouse-down event, and didn't always work. 1213 // reason it required reposting the mouse-down event, and didn't always work.
1215 // Calling the below seems to be an effective solution. 1214 // Calling the below seems to be an effective solution.
1216 [window_ setMovableByWindowBackground:NO]; 1215 [window_ setMovableByWindowBackground:NO];
1217 [window_ setMovableByWindowBackground:YES]; 1216 [window_ setMovableByWindowBackground:YES];
1218 } 1217 }
1219 1218
1220 } // namespace views 1219 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698