Changeset 162112 in webkit
- Timestamp:
- Jan 15, 2014 9:05:55 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r162096 r162112 1 2014-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge 4 https://bugs.webkit.org/show_bug.cgi?id=127069 5 6 Reviewed by Timothy Hatcher. 7 8 * JavaScriptCore.xcodeproj/project.pbxproj: 9 Export XPCConnection because it is needed by RemoteInspector.h. 10 11 * inspector/remote/RemoteInspectorXPCConnection.h: 12 * inspector/remote/RemoteInspector.h: 13 * inspector/remote/RemoteInspector.mm: 14 (Inspector::RemoteInspector::startDisabled): 15 (Inspector::RemoteInspector::shared): 16 Allow RemoteInspector singleton to start disabled. 17 1 18 2014-01-15 Brian Burg <bburg@apple.com> 2 19 -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r161733 r162112 955 955 A5BA15EB182340B400A82E69 /* RemoteInspectorDebuggableConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E4182340B300A82E69 /* RemoteInspectorDebuggableConnection.h */; }; 956 956 A5BA15EC182340B400A82E69 /* RemoteInspectorDebuggableConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5BA15E5182340B300A82E69 /* RemoteInspectorDebuggableConnection.mm */; }; 957 A5BA15ED182340B400A82E69 /* RemoteInspectorXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E6182340B300A82E69 /* RemoteInspectorXPCConnection.h */; };957 A5BA15ED182340B400A82E69 /* RemoteInspectorXPCConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15E6182340B300A82E69 /* RemoteInspectorXPCConnection.h */; settings = {ATTRIBUTES = (Private, ); }; }; 958 958 A5BA15EE182340B400A82E69 /* RemoteInspectorXPCConnection.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5BA15E7182340B300A82E69 /* RemoteInspectorXPCConnection.mm */; }; 959 959 A5BA15F0182345AF00A82E69 /* RemoteInspectorDebuggable.h in Headers */ = {isa = PBXBuildFile; fileRef = A5BA15EF182345AF00A82E69 /* RemoteInspectorDebuggable.h */; settings = {ATTRIBUTES = (Private, ); }; }; -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.h
r160099 r162112 29 29 #define RemoteInspector_h 30 30 31 #import "RemoteInspectorDebuggableConnection.h"32 31 #import "RemoteInspectorXPCConnection.h" 33 32 #import <wtf/Forward.h> … … 36 35 #import <wtf/Threading.h> 37 36 37 OBJC_CLASS NSDictionary; 38 38 OBJC_CLASS NSString; 39 OBJC_CLASS NSDictionary;40 39 41 40 namespace Inspector { 42 41 43 42 class RemoteInspectorDebuggable; 43 class RemoteInspectorDebuggableConnection; 44 44 struct RemoteInspectorDebuggableInfo; 45 45 46 46 class JS_EXPORT_PRIVATE RemoteInspector FINAL : public RemoteInspectorXPCConnection::Client { 47 47 public: 48 static void startDisabled(); 48 49 static RemoteInspector& shared(); 49 50 friend class NeverDestroyed<RemoteInspector>; … … 84 85 void receivedConnectionDiedMessage(NSDictionary *userInfo); 85 86 87 static bool startEnabled; 88 86 89 // Debuggables can be registered from any thread at any time. 87 90 // Any debuggable can send messages over the XPC connection. … … 102 105 } // namespace Inspector 103 106 107 #endif // RemoteInspector_h 108 104 109 #endif // ENABLE(REMOTE_INSPECTOR) 105 106 #endif // WebInspectorServer_h -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm
r161994 r162112 32 32 #import "RemoteInspectorConstants.h" 33 33 #import "RemoteInspectorDebuggable.h" 34 #import "RemoteInspectorDebuggableConnection.h" 35 #import <Foundation/Foundation.h> 34 36 #import <notify.h> 35 #import <xpc/xpc.h>36 #import <Foundation/Foundation.h>37 37 #import <wtf/Assertions.h> 38 38 #import <wtf/MainThread.h> 39 39 #import <wtf/text/WTFString.h> 40 #import <xpc/xpc.h> 40 41 41 42 #if PLATFORM(IOS) … … 55 56 56 57 dispatch_async(dispatch_get_main_queue(), block); 58 } 59 60 bool RemoteInspector::startEnabled = true; 61 62 void RemoteInspector::startDisabled() 63 { 64 RemoteInspector::startEnabled = false; 57 65 } 58 66 … … 65 73 JSC::initializeThreading(); 66 74 WTF::initializeMainThread(); 67 shared.get().start(); 75 if (RemoteInspector::startEnabled) 76 shared.get().start(); 68 77 }); 69 78 -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.h
r160099 r162112 33 33 #import <xpc/xpc.h> 34 34 35 OBJC_CLASS NSDictionary; 35 36 OBJC_CLASS NSString; 36 OBJC_CLASS NSDictionary;37 37 38 38 namespace Inspector { -
trunk/Source/WebCore/ChangeLog
r162109 r162112 1 2014-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge 4 https://bugs.webkit.org/show_bug.cgi?id=127069 5 6 Reviewed by Timothy Hatcher. 7 8 * WebCore.exp.in: 9 1 10 2014-01-15 Sam Weinig <sam@webkit.org> 2 11 -
trunk/Source/WebCore/WebCore.exp.in
r162107 r162112 2933 2933 2934 2934 #if ENABLE(REMOTE_INSPECTOR) 2935 __ZN7WebCore19InspectorController27dispatchMessageFromFrontendERKN3WTF6StringE 2935 2936 __ZN7WebCore4Page26setRemoteInspectionAllowedEb 2936 __ZN 7WebCore19InspectorController27dispatchMessageFromFrontendERKN3WTF6StringE2937 __ZNK7WebCore4Page23remoteInspectionAllowedEv 2937 2938 #endif 2938 2939 -
trunk/Source/WebKit/mac/ChangeLog
r162094 r162112 1 2014-01-15 Joseph Pecoraro <pecoraro@apple.com> 2 3 [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge 4 https://bugs.webkit.org/show_bug.cgi?id=127069 5 6 Reviewed by Timothy Hatcher. 7 8 * WebView/WebView.mm: 9 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): 10 (+[WebView _enableRemoteInspector]): 11 (+[WebView _disableRemoteInspector]): 12 (+[WebView _disableAutoStartRemoteInspector]): 13 (+[WebView _isRemoteInspectorEnabled]): 14 (+[WebView _hasRemoteInspectorSession]): 15 (-[WebView allowsRemoteInspection]): 16 Implement with RemoteInspector.h SPIs. 17 18 (-[WebView setAllowsRemoteInspection:]): 19 (-[WebView setHostApplicationBundleId:name:]): 20 Still unimplemented, update comment. 21 22 (-[WebView _didCommitLoadForFrame:]): 23 Remove dead path, WebCore now pushes updates on navigations. 24 25 * WebView/WebViewData.h: 26 * WebView/WebViewData.mm: 27 (-[WebViewPrivate init]): 28 Remove now unused ivar. 29 1 30 2014-01-15 Alexey Proskuryakov <ap@apple.com> 2 31 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r162087 r162112 260 260 261 261 #if ENABLE(REMOTE_INSPECTOR) 262 #import <JavaScriptCore/RemoteInspector.h> 262 263 #if PLATFORM(IOS) 263 264 #import "WebIndicateLayer.h" … … 301 302 #endif 302 303 304 using namespace JSC; 305 using namespace Inspector; 303 306 using namespace WebCore; 304 using namespace JSC;305 307 306 308 #if defined(__ppc__) || defined(__ppc64__) … … 1184 1186 1185 1187 - (id)initSimpleHTMLDocumentWithStyle:(NSString *)style frame:(CGRect)frame preferences:(WebPreferences *)preferences groupName:(NSString *)groupName 1186 { 1188 { 1187 1189 self = [super initWithFrame:frame]; 1188 1190 if (!self) … … 1208 1210 // Internal installs allow debugging simple HTML documents (TextFields) if the Internal Setting is enabled. 1209 1211 if (!isInternalInstall()) 1210 _private-> allowsRemoteInspection = NO;1212 _private->page->setRemoteInspectionAllowed(false); 1211 1213 else { 1212 1214 static BOOL textFieldInspectionEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebKitTextFieldRemoteInspectionEnabledPreferenceKey]; 1213 _private->allowsRemoteInspection = textFieldInspectionEnabled; 1214 BOOL autoStartRemoteInspector = YES; // FIXME: <rdar://problem/15810991> 1215 if (_private->allowsRemoteInspection && autoStartRemoteInspector) 1216 [WebView _enableRemoteInspector]; 1215 _private->page->setRemoteInspectionAllowed(textFieldInspectionEnabled); 1217 1216 } 1218 1217 #endif … … 1924 1923 + (void)_enableRemoteInspector 1925 1924 { 1926 // FIXME: Move this to a new Inspector::RemoteInspectorServer interface or remove it.1925 RemoteInspector::shared().start(); 1927 1926 } 1928 1927 1929 1928 + (void)_disableRemoteInspector 1930 1929 { 1931 // FIXME: Move this to a new Inspector::RemoteInspectorServer interface or remove it.1930 RemoteInspector::shared().stop(); 1932 1931 } 1933 1932 1934 1933 + (void)_disableAutoStartRemoteInspector 1935 1934 { 1936 // FIXME: Move this to a new Inspector::RemoteInspectorServer interface or remove it.1935 RemoteInspector::startDisabled(); 1937 1936 } 1938 1937 1939 1938 + (BOOL)_isRemoteInspectorEnabled 1940 1939 { 1941 // FIXME: Move this to a new Inspector::RemoteInspectorServer interface or remove it. 1942 return NO; 1940 return RemoteInspector::shared().enabled(); 1943 1941 } 1944 1942 1945 1943 + (BOOL)_hasRemoteInspectorSession 1946 1944 { 1947 // FIXME: Move this to a new Inspector::RemoteInspectorServer interface or remove it. 1948 return NO; 1945 return RemoteInspector::shared().hasActiveDebugSession(); 1949 1946 } 1950 1947 1951 1948 - (BOOL)allowsRemoteInspection 1952 1949 { 1953 // FIXME: Move this to a new API. 1954 return NO; 1950 return _private->page->remoteInspectionAllowed(); 1955 1951 } 1956 1952 1957 1953 - (void)setAllowsRemoteInspection:(BOOL)allow 1958 1954 { 1959 // FIXME: Move this to a new API.1955 _private->page->setRemoteInspectionAllowed(allow); 1960 1956 } 1961 1957 … … 1984 1980 - (void)setHostApplicationBundleId:(NSString *)bundleId name:(NSString *)name 1985 1981 { 1986 // FIXME: This has not yet been ported to Inspector::RemoteInspectorServer.1987 1988 1982 if (![_private->hostApplicationBundleId isEqualToString:bundleId]) { 1989 1983 [_private->hostApplicationBundleId release]; … … 1996 1990 } 1997 1991 1998 // FIXME: <rdar://problem/15810991> 1999 // [[WebView sharedWebInspectorServer] pushListing]; 1992 // FIXME: This has not yet been ported to Inspector::RemoteInspectorServer. 2000 1993 } 2001 1994 … … 3033 3026 - (void)_didCommitLoadForFrame:(WebFrame *)frame 3034 3027 { 3035 if (frame == [self mainFrame]) {3028 if (frame == [self mainFrame]) 3036 3029 _private->didDrawTiles = 0; 3037 #if ENABLE(REMOTE_INSPECTOR)3038 // FIXME: <rdar://problem/15810991>3039 // [[WebView sharedWebInspectorServer] pushListing];3040 #endif3041 }3042 3030 } 3043 3031 -
trunk/Source/WebKit/mac/WebView/WebViewData.h
r161936 r162112 256 256 257 257 #if ENABLE(REMOTE_INSPECTOR) 258 BOOL allowsRemoteInspection;259 258 #if PLATFORM(IOS) 260 259 WebIndicateLayer *indicateLayer; -
trunk/Source/WebKit/mac/WebView/WebViewData.mm
r161936 r162112 106 106 #endif 107 107 108 #if ENABLE(REMOTE_INSPECTOR)109 allowsRemoteInspection = YES;110 #endif111 112 108 #if PLATFORM(IOS) 113 109 isStopping = NO;
Note: See TracChangeset
for help on using the changeset viewer.