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

Side by Side Diff: ios/chrome/browser/ui/omnibox/location_bar_view_ios.mm

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios 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 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 #import <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"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 if (IsIPadIdiom()) 328 if (IsIPadIdiom())
329 [field_ setRightView:nil]; 329 [field_ setRightView:nil];
330 } else if ([field_ displayedText].empty() && 330 } else if ([field_ displayedText].empty() &&
331 ![field_ isShowingQueryRefinementChip]) { 331 ![field_ isShowingQueryRefinementChip]) {
332 [field_ setRightView:nil]; 332 [field_ setRightView:nil];
333 } else { 333 } else {
334 [field_ setRightView:clear_text_button_]; 334 [field_ setRightView:clear_text_button_];
335 [clear_text_button_ setAlpha:1]; 335 [clear_text_button_ setAlpha:1];
336 } 336 }
337 } 337 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/location_bar_view_ios.h ('k') | ios/chrome/browser/ui/omnibox/omnibox_popup_view_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698