OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 |
| 5 #import "ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.h" |
| 6 |
| 7 #import "ios/clean/chrome/browser/ui/commands/tab_commands.h" |
| 8 #import "ios/web/public/navigation_manager.h" |
| 9 #include "ui/base/page_transition_types.h" |
| 10 #include "url/gurl.h" |
| 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." |
| 14 #endif |
| 15 |
| 16 @interface NTPHomeMediator () |
| 17 @end |
| 18 |
| 19 @implementation NTPHomeMediator |
| 20 @synthesize dispatcher = _dispatcher; |
| 21 |
| 22 #pragma mark - UrlLoader |
| 23 |
| 24 - (void)loadURL:(const GURL&)url |
| 25 referrer:(const web::Referrer&)referrer |
| 26 transition:(ui::PageTransition)transition |
| 27 rendererInitiated:(BOOL)rendererInitiated { |
| 28 web::NavigationManager::WebLoadParams params(url); |
| 29 params.transition_type = transition; |
| 30 [self.dispatcher loadURL:params]; |
| 31 } |
| 32 |
| 33 - (void)webPageOrderedOpen:(const GURL&)url |
| 34 referrer:(const web::Referrer&)referrer |
| 35 inBackground:(BOOL)inBackground |
| 36 appendTo:(OpenPosition)appendTo { |
| 37 } |
| 38 |
| 39 - (void)webPageOrderedOpen:(const GURL&)url |
| 40 referrer:(const web::Referrer&)referrer |
| 41 inIncognito:(BOOL)inIncognito |
| 42 inBackground:(BOOL)inBackground |
| 43 appendTo:(OpenPosition)appendTo { |
| 44 } |
| 45 |
| 46 - (void)loadSessionTab:(const sessions::SessionTab*)sessionTab { |
| 47 } |
| 48 |
| 49 - (void)loadJavaScriptFromLocationBar:(NSString*)script { |
| 50 } |
| 51 |
| 52 #pragma mark - OmniboxFocuser |
| 53 |
| 54 - (void)focusOmnibox { |
| 55 } |
| 56 |
| 57 - (void)cancelOmniboxEdit { |
| 58 } |
| 59 |
| 60 - (void)focusFakebox { |
| 61 } |
| 62 |
| 63 - (void)onFakeboxBlur { |
| 64 } |
| 65 |
| 66 - (void)onFakeboxAnimationComplete { |
| 67 } |
| 68 |
| 69 @end |
OLD | NEW |