cwv_user_script.mm 542 B

1234567891011121314151617181920212223
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #import "ios/web_view/public/cwv_user_script.h"
  5. #if !defined(__has_feature) || !__has_feature(objc_arc)
  6. #error "This file requires ARC support."
  7. #endif
  8. @implementation CWVUserScript
  9. @synthesize source = _source;
  10. - (nonnull instancetype)initWithSource:(nonnull NSString*)source {
  11. self = [super init];
  12. if (self) {
  13. _source = [source copy];
  14. }
  15. return self;
  16. }
  17. @end