| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/clean/chrome/browser/ui/web_contents/web_coordinator.h" | 5 #import "ios/clean/chrome/browser/ui/web_contents/web_coordinator.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #import "ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.h
" | 8 #import "ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.h
" |
| 9 #import "ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h" | 9 #import "ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h" |
| 10 #import "ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
" | 10 #import "ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 [self.viewController presentViewController:childCoordinator.viewController | 61 [self.viewController presentViewController:childCoordinator.viewController |
| 62 animated:YES | 62 animated:YES |
| 63 completion:nil]; | 63 completion:nil]; |
| 64 } | 64 } |
| 65 | 65 |
| 66 #pragma mark - CRWWebStateDelegate | 66 #pragma mark - CRWWebStateDelegate |
| 67 | 67 |
| 68 - (BOOL)webState:(web::WebState*)webState | 68 - (BOOL)webState:(web::WebState*)webState |
| 69 handleContextMenu:(const web::ContextMenuParams&)params { | 69 handleContextMenu:(const web::ContextMenuParams&)params { |
| 70 WebContextMenuCoordinator* contextMenu = | 70 WebContextMenuCoordinator* contextMenu = |
| 71 [[WebContextMenuCoordinator alloc] init]; | 71 [[WebContextMenuCoordinator alloc] initWithParams:params]; |
| 72 [self addChildCoordinator:contextMenu]; | 72 [self addChildCoordinator:contextMenu]; |
| 73 [contextMenu start]; | 73 [contextMenu start]; |
| 74 return YES; | 74 return YES; |
| 75 } | 75 } |
| 76 | 76 |
| 77 @end | 77 @end |
| OLD | NEW |