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

Unified Diff: ios/web_view/internal/cwv_web_view.mm

Issue 2691883003: Rename ios/web_view public delegates from CRIWV to CWV prefix. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ios/web_view/internal/cwv_web_view.mm
diff --git a/ios/web_view/internal/cwv_web_view.mm b/ios/web_view/internal/cwv_web_view.mm
index f9c9f8790897daae6ebdfab5848a252a5a18e600..5fc03bfd3743f4d463fb1074751c42d5de0ba402 100644
--- a/ios/web_view/internal/cwv_web_view.mm
+++ b/ios/web_view/internal/cwv_web_view.mm
@@ -20,8 +20,8 @@
#include "ios/web_view/internal/criwv_browser_state.h"
#import "ios/web_view/internal/cwv_website_data_store_internal.h"
#import "ios/web_view/internal/translate/criwv_translate_client.h"
-#import "ios/web_view/public/criwv_web_view_delegate.h"
#import "ios/web_view/public/cwv_web_view_configuration.h"
+#import "ios/web_view/public/cwv_web_view_delegate.h"
#import "ios/web_view/public/cwv_website_data_store.h"
#import "net/base/mac/url_conversions.h"
#include "ui/base/page_transition_types.h"
@@ -139,13 +139,13 @@
completionHandler:completionHandler];
}
-- (void)setDelegate:(id<CRIWVWebViewDelegate>)delegate {
+- (void)setDelegate:(id<CWVWebViewDelegate>)delegate {
_delegate = delegate;
// Set up the translate delegate.
ios_web_view::CRIWVTranslateClient* translateClient =
ios_web_view::CRIWVTranslateClient::FromWebState(_webState.get());
- id<CRIWVTranslateDelegate> translateDelegate = nil;
+ id<CWVTranslateDelegate> translateDelegate = nil;
if ([_delegate respondsToSelector:@selector(translateDelegate)])
translateDelegate = [_delegate translateDelegate];
translateClient->set_translate_delegate(translateDelegate);

Powered by Google App Engine
This is Rietveld 408576698