Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: ios/web/web_state/ui/crw_wk_script_message_router.h

Issue 2652043006: Fix typos in comments "reciever" -> "receiver". (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/clean/chrome/browser/browser_coordinator+internal.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_
7 7
8 #import <WebKit/WebKit.h> 8 #import <WebKit/WebKit.h>
9 9
10 // WKUserContentController wrapper that allows adding multiple message handlers 10 // WKUserContentController wrapper that allows adding multiple message handlers
11 // for the same message name. CRWWKScriptMessageRouter will route the messages 11 // for the same message name. CRWWKScriptMessageRouter will route the messages
12 // from the underlying user content controller to a designated reciever by 12 // from the underlying user content controller to a designated receiver by
13 // matching the message's name and webView. 13 // matching the message's name and webView.
14 @interface CRWWKScriptMessageRouter : NSObject 14 @interface CRWWKScriptMessageRouter : NSObject
15 15
16 // Underlying WKUserContentController. 16 // Underlying WKUserContentController.
17 @property(nonatomic, readonly) WKUserContentController* userContentController; 17 @property(nonatomic, readonly) WKUserContentController* userContentController;
18 18
19 // Designated initializer. |userContentController| must not be nil. 19 // Designated initializer. |userContentController| must not be nil.
20 - (instancetype)initWithUserContentController: 20 - (instancetype)initWithUserContentController:
21 (WKUserContentController*)userContentController NS_DESIGNATED_INITIALIZER; 21 (WKUserContentController*)userContentController NS_DESIGNATED_INITIALIZER;
22 22
(...skipping 11 matching lines...) Expand all
34 // Removes a specific message handler. 34 // Removes a specific message handler.
35 - (void)removeScriptMessageHandlerForName:(NSString*)messageName 35 - (void)removeScriptMessageHandlerForName:(NSString*)messageName
36 webView:(WKWebView*)webView; 36 webView:(WKWebView*)webView;
37 37
38 // Removes all message handlers for the given |webView|. 38 // Removes all message handlers for the given |webView|.
39 - (void)removeAllScriptMessageHandlersForWebView:(WKWebView*)webView; 39 - (void)removeAllScriptMessageHandlersForWebView:(WKWebView*)webView;
40 40
41 @end 41 @end
42 42
43 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_ 43 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_SCRIPT_MESSAGE_ROUTER_H_
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/browser_coordinator+internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698