Changeset 160872 in webkit


Ignore:
Timestamp:
Dec 19, 2013 4:22:50 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

Remove WKContentViewPrivate.h, WKContentView.h is private now
https://bugs.webkit.org/show_bug.cgi?id=125981

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-12-19
Reviewed by Dan Bernstein.

There is no need for a separate header, WKContentView has become an implementation
detail of WKView.

  • UIProcess/API/ios/WKContentView.h:
  • UIProcess/API/ios/WKContentViewInternal.h:
  • UIProcess/API/ios/WKContentViewPrivate.h: Removed.
  • UIProcess/API/ios/WKView.mm:
Location:
trunk/Source/WebKit2
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160866 r160872  
     12013-12-19  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Remove WKContentViewPrivate.h, WKContentView.h is private now
     4        https://bugs.webkit.org/show_bug.cgi?id=125981
     5
     6        Reviewed by Dan Bernstein.
     7
     8        There is no need for a separate header, WKContentView has become an implementation
     9        detail of WKView.
     10
     11        * UIProcess/API/ios/WKContentView.h:
     12        * UIProcess/API/ios/WKContentViewInternal.h:
     13        * UIProcess/API/ios/WKContentViewPrivate.h: Removed.
     14        * UIProcess/API/ios/WKView.mm:
     15
    1162013-12-19  Alexey Proskuryakov  <ap@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentView.h

    r159859 r160872  
    2525
    2626#import <UIKit/UIKit.h>
     27#import <WebKit2/WKBase.h>
    2728#import <WebKit2/WKBrowsingContextController.h>
    2829#import <WebKit2/WKBrowsingContextGroup.h>
     
    5556@property (nonatomic, readonly) WKContentType contentType;
    5657
     58@property (readonly) WKPageRef _pageRef;
     59
     60- (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef;
     61- (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef relatedToPage:(WKPageRef)relatedPage;
    5762- (id)initWithFrame:(CGRect)frame processGroup:(WKProcessGroup *)processGroup browsingContextGroup:(WKBrowsingContextGroup *)browsingContextGroup;
    5863
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentView.mm

    r160069 r160872  
    6161}
    6262
     63- (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef
     64{
     65    return [self initWithFrame:frame contextRef:contextRef pageGroupRef:pageGroupRef relatedToPage:nullptr];
     66}
     67
     68- (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef relatedToPage:(WKPageRef)relatedPage
     69{
     70    if (!(self = [super initWithFrame:frame]))
     71        return nil;
     72
     73    [self _commonInitializationWithContextRef:contextRef pageGroupRef:pageGroupRef relatedToPage:relatedPage];
     74    return self;
     75}
     76
    6377- (id)initWithFrame:(CGRect)frame processGroup:(WKProcessGroup *)processGroup browsingContextGroup:(WKBrowsingContextGroup *)browsingContextGroup
    6478{
     
    112126}
    113127
     128- (WKPageRef)_pageRef
     129{
     130    return toAPI(_page.get());
     131}
     132
    114133- (void)setMinimumSize:(CGSize)size
    115134{
     
    258277
    259278@end
    260 
    261 @implementation WKContentView (Private)
    262 
    263 - (WKPageRef)_pageRef
    264 {
    265     return toAPI(_page.get());
    266 }
    267 
    268 - (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef
    269 {
    270     return [self initWithFrame:frame contextRef:contextRef pageGroupRef:pageGroupRef relatedToPage:nullptr];
    271 }
    272 
    273 - (id)initWithFrame:(CGRect)frame contextRef:(WKContextRef)contextRef pageGroupRef:(WKPageGroupRef)pageGroupRef relatedToPage:(WKPageRef)relatedPage
    274 {
    275     if (!(self = [super initWithFrame:frame]))
    276         return nil;
    277 
    278     [self _commonInitializationWithContextRef:contextRef pageGroupRef:pageGroupRef relatedToPage:relatedPage];
    279     return self;
    280 }
    281 
    282 @end
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentViewInternal.h

    r159859 r160872  
    2424 */
    2525
    26 #import "WKContentViewPrivate.h"
     26#import "WKContentView.h"
    2727#import <wtf/Forward.h>
    2828#import <wtf/Vector.h>
  • trunk/Source/WebKit2/UIProcess/API/ios/WKView.mm

    r160681 r160872  
    2929#import "WKBrowsingContextGroupPrivate.h"
    3030#import "WKContentView.h"
    31 #import "WKContentViewPrivate.h"
    3231#import "WKProcessGroupPrivate.h"
    3332#import "WKScrollView.h"
Note: See TracChangeset for help on using the changeset viewer.