Kaydet (Commit) 4fe9ef81 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

The AppleRemote code is blocked by sandboxing so bypass it in that case

Change-Id: I0e86c82fb81732468cf0a60eb8ff1d0579986767
üst 680ff754
...@@ -10,10 +10,12 @@ ...@@ -10,10 +10,12 @@
$(eval $(call gb_Module_Module,apple_remote)) $(eval $(call gb_Module_Module,apple_remote))
ifeq ($(OS),MACOSX) ifeq ($(OS),MACOSX)
ifneq ($(ENABLE_MACOSX_SANDBOX),YES)
$(eval $(call gb_Module_add_targets,apple_remote,\ $(eval $(call gb_Module_add_targets,apple_remote,\
Library_AppleRemote \ Library_AppleRemote \
)) ))
endif endif
endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -443,9 +443,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -443,9 +443,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/aqua/source/window/salmenu \ vcl/aqua/source/window/salmenu \
vcl/aqua/source/window/salobj \ vcl/aqua/source/window/salobj \
)) ))
$(eval $(call gb_Library_use_libraries,vcl,\
AppleRemote \
))
$(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\ $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
$(if $(filter X86_64,$(CPUNAME)),,QuickTime) \ $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
Cocoa \ Cocoa \
...@@ -453,11 +450,14 @@ $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\ ...@@ -453,11 +450,14 @@ $(eval $(call gb_Library_use_system_darwin_frameworks,vcl,\
CoreFoundation \ CoreFoundation \
)) ))
ifneq ($(ENABLE_MACOSX_SANDBOX),YES)
$(eval $(call gb_Library_use_libraries,vcl,\ $(eval $(call gb_Library_use_libraries,vcl,\
AppleRemote \ AppleRemote \
)) ))
endif endif
endif
vcl_really_generic_code= \ vcl_really_generic_code= \
vcl/generic/app/gensys \ vcl/generic/app/gensys \
vcl/generic/app/geninst \ vcl/generic/app/geninst \
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include "aqua/saldata.hxx" #include "aqua/saldata.hxx"
#include "aqua/salnsmenu.h" #include "aqua/salnsmenu.h"
...@@ -47,7 +48,9 @@ SalData::SalData() ...@@ -47,7 +48,9 @@ SalData::SalData()
mxP50Pattern( NULL ), mxP50Pattern( NULL ),
maCursors( POINTER_COUNT, INVALID_CURSOR_PTR ), maCursors( POINTER_COUNT, INVALID_CURSOR_PTR ),
mbIsScrollbarDoubleMax( false ), mbIsScrollbarDoubleMax( false ),
#if !HAVE_FEATURE_MACOSX_SANDBOX
mpMainController( NULL ), mpMainController( NULL ),
#endif
mpDockIconClickHandler( nil ), mpDockIconClickHandler( nil ),
mnDPIX( 0 ), mnDPIX( 0 ),
mnDPIY( 0 ) mnDPIY( 0 )
...@@ -82,8 +85,10 @@ SalData::~SalData() ...@@ -82,8 +85,10 @@ SalData::~SalData()
osl_destroyThreadKey( s_aAutoReleaseKey ); osl_destroyThreadKey( s_aAutoReleaseKey );
s_aAutoReleaseKey = 0; s_aAutoReleaseKey = 0;
} }
#if !HAVE_FEATURE_MACOSX_SANDBOX
if ( mpMainController ) if ( mpMainController )
[mpMainController release]; [mpMainController release];
#endif
} }
void SalData::ensureThreadAutoreleasePool() void SalData::ensureThreadAutoreleasePool()
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <stdio.h> #include <stdio.h>
...@@ -167,7 +168,7 @@ static void initNSApp() ...@@ -167,7 +168,7 @@ static void initNSApp()
selector: @selector(scrollbarSettingsChanged:) selector: @selector(scrollbarSettingsChanged:)
name: @"AppleNoRedisplayAppearancePreferenceChanged" name: @"AppleNoRedisplayAppearancePreferenceChanged"
object: nil ]; object: nil ];
#if !HAVE_FEATURE_MACOSX_SANDBOX
// Initialize Apple Remote // Initialize Apple Remote
GetSalData()->mpMainController = [[MainController alloc] init]; GetSalData()->mpMainController = [[MainController alloc] init];
...@@ -180,6 +181,7 @@ static void initNSApp() ...@@ -180,6 +181,7 @@ static void initNSApp()
selector: @selector(applicationWillResignActive:) selector: @selector(applicationWillResignActive:)
name: @"AppleRemoteWillResignActive" name: @"AppleRemoteWillResignActive"
object: nil ]; object: nil ];
#endif
} }
sal_Bool ImplSVMainHook( int * pnInit ) sal_Bool ImplSVMainHook( int * pnInit )
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include "sal/config.h" #include "sal/config.h"
#include <vector> #include <vector>
...@@ -439,8 +441,7 @@ ...@@ -439,8 +441,7 @@
// for Apple Remote implementation // for Apple Remote implementation
#pragma mark - #if !HAVE_FEATURE_MACOSX_SANDBOX
#pragma mark NSApplication Delegates
- (void)applicationWillBecomeActive:(NSNotification *)pNotification - (void)applicationWillBecomeActive:(NSNotification *)pNotification
{ {
(void)pNotification; (void)pNotification;
...@@ -490,6 +491,7 @@ ...@@ -490,6 +491,7 @@
[(*it)->mpWindow setLevel: NSNormalWindowLevel]; [(*it)->mpWindow setLevel: NSNormalWindowLevel];
} }
} }
#endif
- (BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL) bWinVisible - (BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL) bWinVisible
{ {
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef _SV_SALDATA_HXX #ifndef _SV_SALDATA_HXX
#define _SV_SALDATA_HXX #define _SV_SALDATA_HXX
#include <config_features.h>
#include "premac.h" #include "premac.h"
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>
#include "postmac.h" #include "postmac.h"
...@@ -89,8 +91,9 @@ public: ...@@ -89,8 +91,9 @@ public:
static oslThreadKey s_aAutoReleaseKey; static oslThreadKey s_aAutoReleaseKey;
bool mbIsScrollbarDoubleMax; // TODO: support DoubleMin and DoubleBoth too bool mbIsScrollbarDoubleMax; // TODO: support DoubleMin and DoubleBoth too
#if !HAVE_FEATURE_MACOSX_SANDBOX
MainController* mpMainController; // Apple Remote MainController* mpMainController; // Apple Remote
#endif
NSObject* mpDockIconClickHandler; NSObject* mpDockIconClickHandler;
long mnDPIX; // #i100617# read DPI only once per office life long mnDPIX; // #i100617# read DPI only once per office life
long mnDPIY; // #i100617# read DPI only once per office life long mnDPIY; // #i100617# read DPI only once per office life
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#ifndef _VCL_VCLNSAPP_H #ifndef _VCL_VCLNSAPP_H
#define _VCL_VCLNSAPP_H #define _VCL_VCLNSAPP_H
#include <config_features.h>
#include "premac.h" #include "premac.h"
#include "Cocoa/Cocoa.h" #include "Cocoa/Cocoa.h"
#include "postmac.h" #include "postmac.h"
...@@ -51,8 +53,10 @@ class AquaSalFrame; ...@@ -51,8 +53,10 @@ class AquaSalFrame;
-(void)addFallbackMenuItem: (NSMenuItem*)pNewItem; -(void)addFallbackMenuItem: (NSMenuItem*)pNewItem;
-(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem; -(void)removeFallbackMenuItem: (NSMenuItem*)pOldItem;
-(void)addDockMenuItem: (NSMenuItem*)pNewItem; -(void)addDockMenuItem: (NSMenuItem*)pNewItem;
#if !HAVE_FEATURE_MACOSX_SANDBOX
-(void)applicationWillBecomeActive: (NSNotification *)pNotification; -(void)applicationWillBecomeActive: (NSNotification *)pNotification;
-(void)applicationWillResignActive: (NSNotification *)pNotification; -(void)applicationWillResignActive: (NSNotification *)pNotification;
#endif
-(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible; -(BOOL)applicationShouldHandleReopen: (NSApplication*)pApp hasVisibleWindows: (BOOL)bWinVisible;
-(void)setDockIconClickHandler: (NSObject*)pHandler; -(void)setDockIconClickHandler: (NSObject*)pHandler;
-(void)cycleFrameForward: (AquaSalFrame*)pCurFrame; -(void)cycleFrameForward: (AquaSalFrame*)pCurFrame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment