Commit 0f0c6208 authored by Jeffrey Cohen's avatar Jeffrey Cohen Committed by Commit Bot

[SendTabToSelf] Add table view controller for modal dialog

Bug: 970284
Change-Id: I2375285647ee5fdabba32aaf936d4f0c70eec353
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1653653
Commit-Queue: Jeffrey Cohen <jeffreycohen@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarsebsg <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668498}
parent 47d68fe9
...@@ -19,5 +19,12 @@ source_set("send_tab_to_self_ui") { ...@@ -19,5 +19,12 @@ source_set("send_tab_to_self_ui") {
sources = [ sources = [
"send_tab_to_self_modal_presentation_controller.h", "send_tab_to_self_modal_presentation_controller.h",
"send_tab_to_self_modal_presentation_controller.mm", "send_tab_to_self_modal_presentation_controller.mm",
"send_tab_to_self_table_view_controller.h",
"send_tab_to_self_table_view_controller.mm",
]
deps = [
"//base",
"//ios/chrome/browser/ui/table_view",
"//ios/chrome/browser/ui/table_view/cells",
] ]
} }
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "base/logging.h" #include "base/logging.h"
#import "ios/chrome/browser/ui/send_tab_to_self/send_tab_to_self_modal_presentation_controller.h" #import "ios/chrome/browser/ui/send_tab_to_self/send_tab_to_self_modal_presentation_controller.h"
#import "ios/chrome/browser/ui/send_tab_to_self/send_tab_to_self_table_view_controller.h"
#if !defined(__has_feature) || !__has_feature(objc_arc) #if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support." #error "This file requires ARC support."
...@@ -24,8 +25,8 @@ ...@@ -24,8 +25,8 @@
#pragma mark - ChromeCoordinator Methods #pragma mark - ChromeCoordinator Methods
- (void)start { - (void)start {
UITableViewController* tableViewController = SendTabToSelfTableViewController* tableViewController =
[[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; [[SendTabToSelfTableViewController alloc] init];
UINavigationController* navigationController = [[UINavigationController alloc] UINavigationController* navigationController = [[UINavigationController alloc]
initWithRootViewController:tableViewController]; initWithRootViewController:tableViewController];
......
// Copyright 2019 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.
#ifndef IOS_CHROME_BROWSER_UI_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_TABLE_VIEW_CONTROLLER_H_
#define IOS_CHROME_BROWSER_UI_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_TABLE_VIEW_CONTROLLER_H_
#import "ios/chrome/browser/ui/table_view/chrome_table_view_controller.h"
// SendTabToSelfTableViewController represents the content for the
// Send Tab To Self Modal dialog.
@interface SendTabToSelfTableViewController : ChromeTableViewController
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithTableViewStyle:(UITableViewStyle)style
appBarStyle:
(ChromeTableViewControllerStyle)appBarStyle
NS_UNAVAILABLE;
@end
#endif // IOS_CHROME_BROWSER_UI_SEND_TAB_TO_SELF_SEND_TAB_TO_SELF_TABLE_VIEW_CONTROLLER_H_
// Copyright 2019 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/chrome/browser/ui/send_tab_to_self/send_tab_to_self_table_view_controller.h"
#include "base/logging.h"
#include "ios/chrome/browser/ui/table_view/cells/table_view_url_item.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
typedef NS_ENUM(NSInteger, SectionIdentifier) {
SectionIdentifierDevicesToSend = kSectionIdentifierEnumZero,
};
@implementation SendTabToSelfTableViewController
- (instancetype)init {
return [super initWithTableViewStyle:UITableViewStylePlain
appBarStyle:ChromeTableViewControllerStyleNoAppBar];
}
#pragma mark - ViewController Lifecycle
- (void)viewDidLoad {
NOTIMPLEMENTED();
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment