Changeset 102633 in webkit
- Timestamp:
- Dec 12, 2011 3:51:08 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r102627 r102633 1 2011-12-12 Sam Weinig <sam@webkit.org> 2 3 Prefix internal methods in Objective-C API files with an underscore 4 https://bugs.webkit.org/show_bug.cgi?id=74363 5 6 Reviewed by Dan Bernstein. 7 8 * UIProcess/API/mac/WKBrowsingContextController.mm: 9 (-[WKBrowsingContextController _pageRef]): 10 (-[WKBrowsingContextController loadRequest:]): 11 (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:]): 12 (-[WKBrowsingContextController stopLoading]): 13 (-[WKBrowsingContextController reload]): 14 (-[WKBrowsingContextController reloadFromOrigin]): 15 (-[WKBrowsingContextController goForward]): 16 (-[WKBrowsingContextController canGoForward]): 17 (-[WKBrowsingContextController goBack]): 18 (-[WKBrowsingContextController canGoBack]): 19 (-[WKBrowsingContextController activeURL]): 20 (-[WKBrowsingContextController provisionalURL]): 21 (-[WKBrowsingContextController committedURL]): 22 (-[WKBrowsingContextController title]): 23 (-[WKBrowsingContextController textZoom]): 24 (-[WKBrowsingContextController setTextZoom:]): 25 (-[WKBrowsingContextController pageZoom]): 26 (-[WKBrowsingContextController setPageZoom:]): 27 (-[WKBrowsingContextController setPaginationMode:]): 28 (-[WKBrowsingContextController paginationMode]): 29 (-[WKBrowsingContextController setPageLength:]): 30 (-[WKBrowsingContextController pageLength]): 31 (-[WKBrowsingContextController setGapBetweenPages:]): 32 (-[WKBrowsingContextController gapBetweenPages]): 33 (-[WKBrowsingContextController pageCount]): 34 (-[WKBrowsingContextController _initWithPageRef:]): 35 * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: 36 * UIProcess/API/mac/WKBrowsingContextGroup.mm: 37 (-[WKBrowsingContextGroup allowsJavaScript]): 38 (-[WKBrowsingContextGroup setAllowsJavaScript:]): 39 (-[WKBrowsingContextGroup allowsPlugIns]): 40 (-[WKBrowsingContextGroup setAllowsPlugIns:]): 41 (-[WKBrowsingContextGroup _pageGroupRef]): 42 * UIProcess/API/mac/WKBrowsingContextGroupInternal.h: 43 * UIProcess/API/mac/WKConnection.mm: 44 (-[WKConnection _initWithConnectionRef:]): 45 * UIProcess/API/mac/WKConnectionInternal.h: 46 * UIProcess/API/mac/WKProcessGroup.mm: 47 (didCreateConnection): 48 (-[WKProcessGroup _contextRef]): 49 * UIProcess/API/mac/WKProcessGroupInternal.h: 50 * UIProcess/API/mac/WKView.mm: 51 (-[WKView initWithFrame:processGroup:browsingContextGroup:]): 52 (-[WKView browsingContextController]): 53 1 54 2011-12-12 Ryosuke Niwa <rniwa@webkit.org> 2 55 -
trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
r102616 r102633 67 67 @end 68 68 69 70 @interface WKBrowsingContextController () 71 72 @property(readonly) WKPageRef _pageRef; 73 74 @end 75 76 69 77 @implementation WKBrowsingContextController 70 78 … … 75 83 } 76 84 77 - (WKPageRef) pageRef85 - (WKPageRef)_pageRef 78 86 { 79 87 return _data->_pageRef.get(); … … 97 105 { 98 106 WKRetainPtr<WKURLRequestRef> wkRequest = adoptWK(WKURLRequestCreateWithNSURLRequest(request)); 99 WKPageLoadURLRequest(self. pageRef, wkRequest.get());107 WKPageLoadURLRequest(self._pageRef, wkRequest.get()); 100 108 } 101 109 … … 108 116 109 117 WKRetainPtr<WKURLRef> wkURL = adoptWK(WKURLCreateWithCFURL((CFURLRef)URL)); 110 WKPageLoadURL(self. pageRef, wkURL.get());118 WKPageLoadURL(self._pageRef, wkURL.get()); 111 119 } 112 120 113 121 - (void)stopLoading 114 122 { 115 WKPageStopLoading(self. pageRef);123 WKPageStopLoading(self._pageRef); 116 124 } 117 125 118 126 - (void)reload 119 127 { 120 WKPageReload(self. pageRef);128 WKPageReload(self._pageRef); 121 129 } 122 130 123 131 - (void)reloadFromOrigin 124 132 { 125 WKPageReloadFromOrigin(self. pageRef);133 WKPageReloadFromOrigin(self._pageRef); 126 134 } 127 135 … … 130 138 - (void)goForward 131 139 { 132 WKPageGoForward(self. pageRef);140 WKPageGoForward(self._pageRef); 133 141 } 134 142 135 143 - (BOOL)canGoForward 136 144 { 137 return WKPageCanGoForward(self. pageRef);145 return WKPageCanGoForward(self._pageRef); 138 146 } 139 147 140 148 - (void)goBack 141 149 { 142 WKPageGoBack(self. pageRef);150 WKPageGoBack(self._pageRef); 143 151 } 144 152 145 153 - (BOOL)canGoBack 146 154 { 147 return WKPageCanGoBack(self. pageRef);155 return WKPageCanGoBack(self._pageRef); 148 156 } 149 157 … … 153 161 - (NSURL *)activeURL 154 162 { 155 return autoreleased(WKPageCopyActiveURL(self. pageRef));163 return autoreleased(WKPageCopyActiveURL(self._pageRef)); 156 164 } 157 165 158 166 - (NSURL *)provisionalURL 159 167 { 160 return autoreleased(WKPageCopyProvisionalURL(self. pageRef));168 return autoreleased(WKPageCopyProvisionalURL(self._pageRef)); 161 169 } 162 170 163 171 - (NSURL *)committedURL 164 172 { 165 return autoreleased(WKPageCopyCommittedURL(self. pageRef));173 return autoreleased(WKPageCopyCommittedURL(self._pageRef)); 166 174 } 167 175 … … 170 178 - (NSString *)title 171 179 { 172 return autoreleased(WKPageCopyTitle(self. pageRef));180 return autoreleased(WKPageCopyTitle(self._pageRef)); 173 181 } 174 182 … … 177 185 - (CGFloat)textZoom 178 186 { 179 return WKPageGetTextZoomFactor(self. pageRef);187 return WKPageGetTextZoomFactor(self._pageRef); 180 188 } 181 189 182 190 - (void)setTextZoom:(CGFloat)textZoom 183 191 { 184 return WKPageSetTextZoomFactor(self. pageRef, textZoom);192 return WKPageSetTextZoomFactor(self._pageRef, textZoom); 185 193 } 186 194 187 195 - (CGFloat)pageZoom 188 196 { 189 return WKPageGetPageZoomFactor(self. pageRef);197 return WKPageGetPageZoomFactor(self._pageRef); 190 198 } 191 199 192 200 - (void)setPageZoom:(CGFloat)pageZoom 193 201 { 194 return WKPageSetPageZoomFactor(self. pageRef, pageZoom);202 return WKPageSetPageZoomFactor(self._pageRef, pageZoom); 195 203 } 196 204 … … 216 224 } 217 225 218 WKPageSetPaginationMode(self. pageRef, mode);226 WKPageSetPaginationMode(self._pageRef, mode); 219 227 } 220 228 221 229 - (WKBrowsingContextPaginationMode)paginationMode 222 230 { 223 switch (WKPageGetPaginationMode(self. pageRef)) {231 switch (WKPageGetPaginationMode(self._pageRef)) { 224 232 case kWKPaginationModeUnpaginated: 225 233 return WKPaginationModeUnpaginated; … … 236 244 - (void)setPageLength:(CGFloat)pageLength 237 245 { 238 WKPageSetPageLength(self. pageRef, pageLength);246 WKPageSetPageLength(self._pageRef, pageLength); 239 247 } 240 248 241 249 - (CGFloat)pageLength 242 250 { 243 return WKPageGetPageLength(self. pageRef);251 return WKPageGetPageLength(self._pageRef); 244 252 } 245 253 246 254 - (void)setGapBetweenPages:(CGFloat)gapBetweenPages 247 255 { 248 WKPageSetGapBetweenPages(self. pageRef, gapBetweenPages);256 WKPageSetGapBetweenPages(self._pageRef, gapBetweenPages); 249 257 } 250 258 251 259 - (CGFloat)gapBetweenPages 252 260 { 253 return WKPageGetGapBetweenPages(self. pageRef);261 return WKPageGetGapBetweenPages(self._pageRef); 254 262 } 255 263 256 264 - (NSUInteger)pageCount 257 265 { 258 return WKPageGetPageCount(self. pageRef);266 return WKPageGetPageCount(self._pageRef); 259 267 } 260 268 … … 347 355 /* This should only be called from associate view. */ 348 356 349 - (id) initWithPageRef:(WKPageRef)pageRef357 - (id)_initWithPageRef:(WKPageRef)pageRef 350 358 { 351 359 self = [super init]; -
trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerInternal.h
r97882 r102633 29 29 30 30 /* This should only be called from associate view. */ 31 - (id) initWithPageRef:(WKPageRef)pageRef;31 - (id)_initWithPageRef:(WKPageRef)pageRef; 32 32 33 33 @end -
trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroup.mm
r98622 r102633 64 64 - (BOOL)allowsJavaScript 65 65 { 66 return WKPreferencesGetJavaScriptEnabled(WKPageGroupGetPreferences(self. pageGroupRef));66 return WKPreferencesGetJavaScriptEnabled(WKPageGroupGetPreferences(self._pageGroupRef)); 67 67 } 68 68 69 69 - (void)setAllowsJavaScript:(BOOL)allowsJavaScript 70 70 { 71 WKPreferencesSetJavaScriptEnabled(WKPageGroupGetPreferences(self. pageGroupRef), allowsJavaScript);71 WKPreferencesSetJavaScriptEnabled(WKPageGroupGetPreferences(self._pageGroupRef), allowsJavaScript); 72 72 } 73 73 74 74 - (BOOL)allowsPlugIns 75 75 { 76 return WKPreferencesGetPluginsEnabled(WKPageGroupGetPreferences(self. pageGroupRef));76 return WKPreferencesGetPluginsEnabled(WKPageGroupGetPreferences(self._pageGroupRef)); 77 77 } 78 78 79 79 - (void)setAllowsPlugIns:(BOOL)allowsPlugIns 80 80 { 81 WKPreferencesSetPluginsEnabled(WKPageGroupGetPreferences(self. pageGroupRef), allowsPlugIns);81 WKPreferencesSetPluginsEnabled(WKPageGroupGetPreferences(self._pageGroupRef), allowsPlugIns); 82 82 } 83 83 … … 86 86 @implementation WKBrowsingContextGroup (Internal) 87 87 88 - (WKPageGroupRef) pageGroupRef88 - (WKPageGroupRef)_pageGroupRef 89 89 { 90 90 return _data->_pageGroupRef.get(); -
trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupInternal.h
r98184 r102633 28 28 @interface WKBrowsingContextGroup (Internal) 29 29 30 @property(readonly) WKPageGroupRef pageGroupRef;30 @property(readonly) WKPageGroupRef _pageGroupRef; 31 31 32 32 @end -
trunk/Source/WebKit2/UIProcess/API/mac/WKConnection.mm
r102625 r102633 101 101 } 102 102 103 - (id) initWithConnectionRef:(WKConnectionRef)connectionRef103 - (id)_initWithConnectionRef:(WKConnectionRef)connectionRef 104 104 { 105 105 self = [super init]; -
trunk/Source/WebKit2/UIProcess/API/mac/WKConnectionInternal.h
r102616 r102633 28 28 @interface WKConnection (Internal) 29 29 30 - (id) initWithConnectionRef:(WKConnectionRef)connectionRef;30 - (id)_initWithConnectionRef:(WKConnectionRef)connectionRef; 31 31 32 32 @end -
trunk/Source/WebKit2/UIProcess/API/mac/WKProcessGroup.mm
r102616 r102633 53 53 WKProcessGroup *processGroup = (WKProcessGroup *)clientInfo; 54 54 if ([processGroup.delegate respondsToSelector:@selector(processGroup:didCreateConnectionToWebProcessPlugIn:)]) { 55 RetainPtr<WKConnection> connection = adoptNS([[WKConnection alloc] initWithConnectionRef:connectionRef]);55 RetainPtr<WKConnection> connection = adoptNS([[WKConnection alloc] _initWithConnectionRef:connectionRef]); 56 56 [processGroup.delegate processGroup:processGroup didCreateConnectionToWebProcessPlugIn:connection.get()]; 57 57 } … … 113 113 @implementation WKProcessGroup (Internal) 114 114 115 - (WKContextRef) contextRef115 - (WKContextRef)_contextRef 116 116 { 117 117 return _data->_contextRef.get(); -
trunk/Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h
r98160 r102633 28 28 @interface WKProcessGroup (Internal) 29 29 30 @property(readonly) WKContextRef contextRef;30 @property(readonly) WKContextRef _contextRef; 31 31 32 32 @end -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r102494 r102633 218 218 - (id)initWithFrame:(NSRect)frame processGroup:(WKProcessGroup *)processGroup browsingContextGroup:(WKBrowsingContextGroup *)browsingContextGroup 219 219 { 220 return [self initWithFrame:frame contextRef:processGroup. contextRef pageGroupRef:browsingContextGroup.pageGroupRef];220 return [self initWithFrame:frame contextRef:processGroup._contextRef pageGroupRef:browsingContextGroup._pageGroupRef]; 221 221 } 222 222 … … 238 238 { 239 239 if (!_data->_browsingContextController) 240 _data->_browsingContextController.adoptNS([[WKBrowsingContextController alloc] initWithPageRef:[self pageRef]]);240 _data->_browsingContextController.adoptNS([[WKBrowsingContextController alloc] _initWithPageRef:[self pageRef]]); 241 241 return _data->_browsingContextController.get(); 242 242 }
Note: See TracChangeset
for help on using the changeset viewer.