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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm
diff --git a/ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm b/ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm
new file mode 100644
index 0000000000000000000000000000000000000000..8aea01c2578507937c9f46b46dcb3ae1d3c0192e
--- /dev/null
+++ b/ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.mm
@@ -0,0 +1,69 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/clean/chrome/browser/ui/ntp/ntp_home_mediator.h"
+
+#import "ios/clean/chrome/browser/ui/commands/tab_commands.h"
+#import "ios/web/public/navigation_manager.h"
+#include "ui/base/page_transition_types.h"
+#include "url/gurl.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@interface NTPHomeMediator ()
+@end
+
+@implementation NTPHomeMediator
+@synthesize dispatcher = _dispatcher;
+
+#pragma mark - UrlLoader
+
+- (void)loadURL:(const GURL&)url
+ referrer:(const web::Referrer&)referrer
+ transition:(ui::PageTransition)transition
+ rendererInitiated:(BOOL)rendererInitiated {
+ web::NavigationManager::WebLoadParams params(url);
+ params.transition_type = transition;
+ [self.dispatcher loadURL:params];
+}
+
+- (void)webPageOrderedOpen:(const GURL&)url
+ referrer:(const web::Referrer&)referrer
+ inBackground:(BOOL)inBackground
+ appendTo:(OpenPosition)appendTo {
+}
+
+- (void)webPageOrderedOpen:(const GURL&)url
+ referrer:(const web::Referrer&)referrer
+ inIncognito:(BOOL)inIncognito
+ inBackground:(BOOL)inBackground
+ appendTo:(OpenPosition)appendTo {
+}
+
+- (void)loadSessionTab:(const sessions::SessionTab*)sessionTab {
+}
+
+- (void)loadJavaScriptFromLocationBar:(NSString*)script {
+}
+
+#pragma mark - OmniboxFocuser
+
+- (void)focusOmnibox {
+}
+
+- (void)cancelOmniboxEdit {
+}
+
+- (void)focusFakebox {
+}
+
+- (void)onFakeboxBlur {
+}
+
+- (void)onFakeboxAnimationComplete {
+}
+
+@end
« 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