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

Side by Side Diff: ios/chrome/browser/ui/reading_list/reading_list_menu_notifier.mm

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/ui/reading_list/reading_list_menu_notifier.h" 5 #import "ios/chrome/browser/ui/reading_list/reading_list_menu_notifier.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "components/reading_list/ios/reading_list_model.h" 9 #include "components/reading_list/core/reading_list_model.h"
10 #import "ios/chrome/browser/ui/reading_list/reading_list_menu_notification_deleg ate.h" 10 #import "ios/chrome/browser/ui/reading_list/reading_list_menu_notification_deleg ate.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support." 13 #error "This file requires ARC support."
14 #endif 14 #endif
15 15
16 class ReadingListObserverBridge; 16 class ReadingListObserverBridge;
17 17
18 @interface ReadingListMenuNotifier () { 18 @interface ReadingListMenuNotifier () {
19 // Observer for reading list changes. 19 // Observer for reading list changes.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 - (NSInteger)readingListUnreadCount { 92 - (NSInteger)readingListUnreadCount {
93 return _readingListModel->unread_size(); 93 return _readingListModel->unread_size();
94 } 94 }
95 95
96 - (BOOL)readingListUnseenItemsExist { 96 - (BOOL)readingListUnseenItemsExist {
97 return _readingListModel->unseen_size() > 0; 97 return _readingListModel->unseen_size() > 0;
98 } 98 }
99 99
100 @end 100 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698