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

Unified Diff: ios/chrome/browser/ui/suggestions/suggestions_collection_updater.h

Issue 2619963004: Suggestions UI - Add Data Source and Item (Closed)
Patch Set: Change to property Created 3 years, 11 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/chrome/browser/ui/suggestions/suggestions_collection_updater.h
diff --git a/ios/chrome/browser/ui/suggestions/suggestions_collection_updater.h b/ios/chrome/browser/ui/suggestions/suggestions_collection_updater.h
new file mode 100644
index 0000000000000000000000000000000000000000..48424b84e3b8ac070886f067c5aa82a207c1d7f3
--- /dev/null
+++ b/ios/chrome/browser/ui/suggestions/suggestions_collection_updater.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_SUGGESTIONS_SUGGESTIONS_COLLECTION_UPDATER_H_
+#define IOS_CHROME_BROWSER_UI_SUGGESTIONS_SUGGESTIONS_COLLECTION_UPDATER_H_
+
+#import <UIKit/UIKit.h>
+
+@class CollectionViewController;
+
+// Updater for a CollectionViewController populating it with some items and
+// handling the items addition.
+@interface SuggestionsCollectionUpdater : NSObject
+
+// |collectionViewController| this Updater will update.
+- (instancetype)initWithCollectionViewController:
+ (CollectionViewController*)collectionViewController
+ NS_DESIGNATED_INITIALIZER;
+- (instancetype)init NS_UNAVAILABLE;
+
+// Adds a text item with a |title| and a |subtitle| in the section numbered
+// |section|. If |section| is greater than the current number of section, it
+// will add a new section at the end.
+- (void)addTextItem:(NSString*)title
+ subtitle:(NSString*)subtitle
+ toSection:(NSInteger)inputSection;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_SUGGESTIONS_SUGGESTIONS_COLLECTION_UPDATER_H_
« no previous file with comments | « ios/chrome/browser/ui/suggestions/BUILD.gn ('k') | ios/chrome/browser/ui/suggestions/suggestions_collection_updater.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698