cwv_script_command_internal.h 998 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2018 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. #ifndef IOS_WEB_VIEW_INTERNAL_CWV_SCRIPT_COMMAND_INTERNAL_H_
  5. #define IOS_WEB_VIEW_INTERNAL_CWV_SCRIPT_COMMAND_INTERNAL_H_
  6. #import "ios/web_view/public/cwv_script_command.h"
  7. NS_ASSUME_NONNULL_BEGIN
  8. @interface CWVScriptCommand ()
  9. /**
  10. * Designated initializer.
  11. *
  12. * @param content Content of the command. nil in case of an error converting the
  13. * content object.
  14. * @param mainDocumentURL URL of the document in the main web view frame.
  15. * @param userInteracting YES if the user is currently interacting with the
  16. * page.
  17. */
  18. - (instancetype)initWithContent:(nullable NSDictionary*)content
  19. mainDocumentURL:(NSURL*)mainDocumentURL
  20. userInteracting:(BOOL)userInteracting NS_DESIGNATED_INITIALIZER;
  21. @end
  22. NS_ASSUME_NONNULL_END
  23. #endif // IOS_WEB_VIEW_INTERNAL_CWV_SCRIPT_COMMAND_INTERNAL_H_