| 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 "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 5 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/autocomplete/autocomplete_match.h" | 11 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 12 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" | 12 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/search_engines/template_url.h" | 14 #include "chrome/browser/search_engines/template_url.h" |
| 15 #include "chrome/browser/search_engines/template_url_service.h" | 15 #include "chrome/browser/search_engines/template_url_service.h" |
| 16 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 17 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" | 17 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" |
| 18 #include "third_party/icu/public/common/unicode/ubidi.h" | 18 #include "third_party/icu/public/common/unicode/ubidi.h" |
| 19 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 manually_selected_match_.Clear(); | 213 manually_selected_match_.Clear(); |
| 214 selected_line_state_ = NORMAL; | 214 selected_line_state_ = NORMAL; |
| 215 // If we're going to trim the window size to no longer include the hovered | 215 // If we're going to trim the window size to no longer include the hovered |
| 216 // line, turn hover off. Practically, this shouldn't happen, but it | 216 // line, turn hover off. Practically, this shouldn't happen, but it |
| 217 // doesn't hurt to be defensive. | 217 // doesn't hurt to be defensive. |
| 218 if ((hovered_line_ != kNoMatch) && (result.size() <= hovered_line_)) | 218 if ((hovered_line_ != kNoMatch) && (result.size() <= hovered_line_)) |
| 219 SetHoveredLine(kNoMatch); | 219 SetHoveredLine(kNoMatch); |
| 220 | 220 |
| 221 view_->UpdatePopupAppearance(); | 221 view_->UpdatePopupAppearance(); |
| 222 } | 222 } |
| OLD | NEW |