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

Side by Side Diff: ios/chrome/browser/ui/omnibox/location_bar_view_ios.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <UIKit/UIKit.h> 5 #include <UIKit/UIKit.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "components/omnibox/browser/omnibox_edit_model.h" 11 #include "components/omnibox/browser/omnibox_edit_model.h"
12 #include "components/strings/grit/components_strings.h" 12 #include "components/strings/grit/components_strings.h"
13 #include "components/toolbar/toolbar_model.h" 13 #include "components/toolbar/toolbar_model.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
15 #include "ios/chrome/browser/chrome_url_constants.h" 15 #include "ios/chrome/browser/chrome_url_constants.h"
16 #include "ios/chrome/browser/experimental_flags.h" 16 #include "ios/chrome/browser/experimental_flags.h"
17 #include "ios/chrome/browser/ui/commands/UIKit+ChromeExecuteCommand.h"
17 #include "ios/chrome/browser/ui/commands/ios_command_ids.h" 18 #include "ios/chrome/browser/ui/commands/ios_command_ids.h"
18 #include "ios/chrome/browser/ui/omnibox/location_bar_view_ios.h" 19 #include "ios/chrome/browser/ui/omnibox/location_bar_view_ios.h"
19 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h" 20 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h"
20 #include "ios/chrome/browser/ui/omnibox/omnibox_view_ios.h" 21 #include "ios/chrome/browser/ui/omnibox/omnibox_view_ios.h"
21 #include "ios/chrome/browser/ui/ui_util.h" 22 #include "ios/chrome/browser/ui/ui_util.h"
22 #import "ios/chrome/browser/ui/uikit_ui_util.h" 23 #import "ios/chrome/browser/ui/uikit_ui_util.h"
23 #include "ios/chrome/grit/ios_strings.h" 24 #include "ios/chrome/grit/ios_strings.h"
24 #include "ios/chrome/grit/ios_theme_resources.h" 25 #include "ios/chrome/grit/ios_theme_resources.h"
25 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF ontLoader.h" 26 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF ontLoader.h"
26 #include "ios/web/public/navigation_item.h" 27 #include "ios/web/public/navigation_item.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 if (IsIPadIdiom()) 328 if (IsIPadIdiom())
328 [field_ setRightView:nil]; 329 [field_ setRightView:nil];
329 } else if ([field_ displayedText].empty() && 330 } else if ([field_ displayedText].empty() &&
330 ![field_ isShowingQueryRefinementChip]) { 331 ![field_ isShowingQueryRefinementChip]) {
331 [field_ setRightView:nil]; 332 [field_ setRightView:nil];
332 } else { 333 } else {
333 [field_ setRightView:clear_text_button_]; 334 [field_ setRightView:clear_text_button_];
334 [clear_text_button_ setAlpha:1]; 335 [clear_text_button_ setAlpha:1];
335 } 336 }
336 } 337 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698