mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-23 16:01:08 +01:00
Mac: Fix errors in binary distribution.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@833 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
91cde9eeb0
commit
ecf5ff4c6e
@ -593,10 +593,11 @@ class ClientOSRHandler : public CefClient,
|
|||||||
- (NSPoint)getClickPointForEvent:(NSEvent*)event {
|
- (NSPoint)getClickPointForEvent:(NSEvent*)event {
|
||||||
NSPoint windowLocal = [event locationInWindow];
|
NSPoint windowLocal = [event locationInWindow];
|
||||||
NSPoint contentLocal = [self convertPoint:windowLocal fromView:nil];
|
NSPoint contentLocal = [self convertPoint:windowLocal fromView:nil];
|
||||||
int x = contentLocal.x;
|
|
||||||
int y = [self frame].size.height - contentLocal.y; // Flip y.
|
|
||||||
|
|
||||||
return {x,y};
|
NSPoint point;
|
||||||
|
point.x = contentLocal.x;
|
||||||
|
point.y = [self frame].size.height - contentLocal.y; // Flip y.
|
||||||
|
return point;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)getKeyInfo:(CefKeyInfo&)info forEvent:(NSEvent*)event {
|
- (void)getKeyInfo:(CefKeyInfo&)info forEvent:(NSEvent*)event {
|
||||||
|
@ -347,6 +347,8 @@ elif platform == 'macosx':
|
|||||||
# transfer cefclient files
|
# transfer cefclient files
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_mac'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_mac'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_bundle_resources_mac'], \
|
||||||
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
|
|
||||||
# transfer cefclient/mac files
|
# transfer cefclient/mac files
|
||||||
copy_dir(os.path.join(cef_dir, 'tests/cefclient/mac/'), os.path.join(output_dir, 'cefclient/mac/'), \
|
copy_dir(os.path.join(cef_dir, 'tests/cefclient/mac/'), os.path.join(output_dir, 'cefclient/mac/'), \
|
||||||
|
Loading…
Reference in New Issue
Block a user