| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/tools_menu/tools_menu_view_controller.h" | 5 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #import "base/ios/weak_nsobject.h" | 10 #import "base/ios/weak_nsobject.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 if (!(item.toolbar_types & toolbarType)) | 156 if (!(item.toolbar_types & toolbarType)) |
| 157 return NO; | 157 return NO; |
| 158 | 158 |
| 159 if (incognito && (item.visibility & kVisibleNotIncognitoOnly)) | 159 if (incognito && (item.visibility & kVisibleNotIncognitoOnly)) |
| 160 return NO; | 160 return NO; |
| 161 | 161 |
| 162 if (!incognito && (item.visibility & kVisibleIncognitoOnly)) | 162 if (!incognito && (item.visibility & kVisibleIncognitoOnly)) |
| 163 return NO; | 163 return NO; |
| 164 | 164 |
| 165 if (item.title_id == IDS_IOS_TOOLBAR_SHOW_TABS) { | 165 if (item.title_id == IDS_IOS_TOOLBAR_SHOW_TABS) { |
| 166 if (!IsIPadIdiom() || !experimental_flags::IsTabSwitcherEnabled()) { | 166 if (!IsIPadIdiom()) { |
| 167 return NO; | 167 return NO; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 if (item.title_id == IDS_IOS_TOOLS_MENU_READER_MODE) { | 171 if (item.title_id == IDS_IOS_TOOLS_MENU_READER_MODE) { |
| 172 if (!experimental_flags::IsReaderModeEnabled()) { | 172 if (!experimental_flags::IsReaderModeEnabled()) { |
| 173 return NO; | 173 return NO; |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 747 |
| 748 - (void)unreadCountChanged:(NSInteger)unreadCount { | 748 - (void)unreadCountChanged:(NSInteger)unreadCount { |
| 749 [[self readingListCell] updateBadgeCount:unreadCount animated:YES]; | 749 [[self readingListCell] updateBadgeCount:unreadCount animated:YES]; |
| 750 } | 750 } |
| 751 | 751 |
| 752 - (void)unseenStateChanged:(BOOL)unseenItemsExist { | 752 - (void)unseenStateChanged:(BOOL)unseenItemsExist { |
| 753 [[self readingListCell] updateSeenState:unseenItemsExist animated:YES]; | 753 [[self readingListCell] updateSeenState:unseenItemsExist animated:YES]; |
| 754 } | 754 } |
| 755 | 755 |
| 756 @end | 756 @end |
| OLD | NEW |