OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |