| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/autocomplete/autocomplete_popup.h" | 5 #include "chrome/browser/autocomplete/autocomplete_popup.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "chrome/app/theme/theme_resources.h" | 11 #include "chrome/app/theme/theme_resources.h" |
| 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/net/dns_global.h" | 14 #include "chrome/browser/net/dns_global.h" |
| 15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 16 #include "chrome/browser/template_url.h" | 16 #include "chrome/browser/search_engines/template_url.h" |
| 17 #include "chrome/browser/template_url_model.h" | 17 #include "chrome/browser/search_engines/template_url_model.h" |
| 18 #include "chrome/browser/views/location_bar_view.h" | 18 #include "chrome/browser/views/location_bar_view.h" |
| 19 #include "chrome/common/gfx/chrome_canvas.h" | 19 #include "chrome/common/gfx/chrome_canvas.h" |
| 20 #include "chrome/common/l10n_util.h" | 20 #include "chrome/common/l10n_util.h" |
| 21 #include "chrome/common/resource_bundle.h" | 21 #include "chrome/common/resource_bundle.h" |
| 22 #include "third_party/icu38/public/common/unicode/ubidi.h" | 22 #include "third_party/icu38/public/common/unicode/ubidi.h" |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 // Padding between text and the star indicator, in pixels. | 25 // Padding between text and the star indicator, in pixels. |
| 26 const int kStarPadding = 4; | 26 const int kStarPadding = 4; |
| 27 }; | 27 }; |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 } | 971 } |
| 972 edit_model_->OnPopupDataChanged(inline_autocomplete_text, false, keyword, | 972 edit_model_->OnPopupDataChanged(inline_autocomplete_text, false, keyword, |
| 973 is_keyword_hint, type); | 973 is_keyword_hint, type); |
| 974 return; | 974 return; |
| 975 } | 975 } |
| 976 | 976 |
| 977 default: | 977 default: |
| 978 NOTREACHED(); | 978 NOTREACHED(); |
| 979 } | 979 } |
| 980 } | 980 } |
| OLD | NEW |