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

Side by Side Diff: ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm

Issue 2785893003: [ios clean] Add placeholder for NTP bookmarks, chrome home and open tabs. (Closed)
Patch Set: Comment nit Created 3 years, 8 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
OLDNEW
(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
OLDNEW
« no previous file with comments | « ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.h ('k') | ios/clean/chrome/browser/ui/ntp/ntp_home_mediator_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698