| OLD | NEW | 
|    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 #import "ios/web_view/public/cwv_web_view.h" |    5 #import "ios/web_view/public/cwv_web_view.h" | 
|    6  |    6  | 
|    7 #include <memory> |    7 #include <memory> | 
|    8 #include <utility> |    8 #include <utility> | 
|    9  |    9  | 
|   10 #import "base/ios/weak_nsobject.h" |   10 #import "base/ios/weak_nsobject.h" | 
|   11 #include "base/memory/ptr_util.h" |   11 #include "base/memory/ptr_util.h" | 
|   12 #include "base/strings/sys_string_conversions.h" |   12 #include "base/strings/sys_string_conversions.h" | 
|   13 #import "ios/web/public/navigation_manager.h" |   13 #import "ios/web/public/navigation_manager.h" | 
|   14 #include "ios/web/public/referrer.h" |   14 #include "ios/web/public/referrer.h" | 
 |   15 #include "ios/web/public/reload_type.h" | 
|   15 #import "ios/web/public/web_state/context_menu_params.h" |   16 #import "ios/web/public/web_state/context_menu_params.h" | 
|   16 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |   17 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 
|   17 #import "ios/web/public/web_state/ui/crw_web_delegate.h" |   18 #import "ios/web/public/web_state/ui/crw_web_delegate.h" | 
|   18 #import "ios/web/public/web_state/web_state.h" |   19 #import "ios/web/public/web_state/web_state.h" | 
|   19 #import "ios/web/public/web_state/web_state_delegate_bridge.h" |   20 #import "ios/web/public/web_state/web_state_delegate_bridge.h" | 
|   20 #import "ios/web/public/web_state/web_state_observer_bridge.h" |   21 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 
|   21 #import "ios/web_view/internal/cwv_html_element_internal.h" |   22 #import "ios/web_view/internal/cwv_html_element_internal.h" | 
|   22 #import "ios/web_view/internal/cwv_website_data_store_internal.h" |   23 #import "ios/web_view/internal/cwv_website_data_store_internal.h" | 
|   23 #import "ios/web_view/internal/translate/web_view_translate_client.h" |   24 #import "ios/web_view/internal/translate/web_view_translate_client.h" | 
|   24 #include "ios/web_view/internal/web_view_browser_state.h" |   25 #include "ios/web_view/internal/web_view_browser_state.h" | 
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  124   if (_webState->GetNavigationManager()) |  125   if (_webState->GetNavigationManager()) | 
|  125     _webState->GetNavigationManager()->GoBack(); |  126     _webState->GetNavigationManager()->GoBack(); | 
|  126 } |  127 } | 
|  127  |  128  | 
|  128 - (void)goForward { |  129 - (void)goForward { | 
|  129   if (_webState->GetNavigationManager()) |  130   if (_webState->GetNavigationManager()) | 
|  130     _webState->GetNavigationManager()->GoForward(); |  131     _webState->GetNavigationManager()->GoForward(); | 
|  131 } |  132 } | 
|  132  |  133  | 
|  133 - (void)reload { |  134 - (void)reload { | 
|  134   _webState->GetNavigationManager()->Reload(true); |  135   _webState->GetNavigationManager()->Reload(web::ReloadType::NORMAL, true); | 
|  135 } |  136 } | 
|  136  |  137  | 
|  137 - (void)stopLoading { |  138 - (void)stopLoading { | 
|  138   _webState->Stop(); |  139   _webState->Stop(); | 
|  139 } |  140 } | 
|  140  |  141  | 
|  141 - (void)loadRequest:(NSURLRequest*)request { |  142 - (void)loadRequest:(NSURLRequest*)request { | 
|  142   DCHECK_EQ(nil, request.HTTPBodyStream) |  143   DCHECK_EQ(nil, request.HTTPBodyStream) | 
|  143       << "request.HTTPBodyStream is not supported."; |  144       << "request.HTTPBodyStream is not supported."; | 
|  144  |  145  | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  226           userGestureLocation:params.location]; |  227           userGestureLocation:params.location]; | 
|  227   return YES; |  228   return YES; | 
|  228 } |  229 } | 
|  229  |  230  | 
|  230 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState: |  231 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState: | 
|  231     (web::WebState*)webState { |  232     (web::WebState*)webState { | 
|  232   return _javaScriptDialogPresenter.get(); |  233   return _javaScriptDialogPresenter.get(); | 
|  233 } |  234 } | 
|  234  |  235  | 
|  235 @end |  236 @end | 
| OLD | NEW |