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

Side by Side Diff: ios/chrome/browser/ui/find_bar/find_bar_view.mm

Issue 2595213003: Enable -Wundeclared-selector on ios. (Closed)
Patch Set: Fix more warnings. Created 4 years 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/find_bar/find_bar_view.h" 5 #import "ios/chrome/browser/ui/find_bar/find_bar_view.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "components/strings/grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #import "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
9 #import "ios/chrome/browser/ui/commands/ios_command_ids.h" 10 #import "ios/chrome/browser/ui/commands/ios_command_ids.h"
10 #import "ios/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.h" 11 #import "ios/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.h"
11 #import "ios/chrome/browser/ui/uikit_ui_util.h" 12 #import "ios/chrome/browser/ui/uikit_ui_util.h"
12 #include "ios/chrome/grit/ios_strings.h" 13 #include "ios/chrome/grit/ios_strings.h"
13 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h" 14 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h"
14 #include "ui/base/l10n/l10n_util_mac.h" 15 #include "ui/base/l10n/l10n_util_mac.h"
15 #import "ui/gfx/ios/NSString+CrStringDrawing.h" 16 #import "ui/gfx/ios/NSString+CrStringDrawing.h"
16 17
17 NSString* const kFindInPageInputFieldId = @"kFindInPageInputFieldId"; 18 NSString* const kFindInPageInputFieldId = @"kFindInPageInputFieldId";
18 NSString* const kFindInPageNextButtonId = @"kFindInPageNextButtonId"; 19 NSString* const kFindInPageNextButtonId = @"kFindInPageNextButtonId";
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 [self.separator setBackgroundColor:separatorColor]; 263 [self.separator setBackgroundColor:separatorColor];
263 } 264 }
264 265
265 - (UIImage*)imageWithName:(NSString*)imageName isDark:(BOOL)isDark { 266 - (UIImage*)imageWithName:(NSString*)imageName isDark:(BOOL)isDark {
266 NSString* name = 267 NSString* name =
267 isDark ? [imageName stringByAppendingString:@"_incognito"] : imageName; 268 isDark ? [imageName stringByAppendingString:@"_incognito"] : imageName;
268 return [UIImage imageNamed:name]; 269 return [UIImage imageNamed:name];
269 } 270 }
270 271
271 @end 272 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698