| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/views/autocomplete/autocomplete_popup_contents_view.
h" | 5 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.
h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/i18n/bidi_line_iterator.h" | 8 #include "base/i18n/bidi_line_iterator.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" |
| 26 #include "third_party/skia/include/core/SkShader.h" | 26 #include "third_party/skia/include/core/SkShader.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 29 #include "ui/base/text/text_elider.h" | 29 #include "ui/base/text/text_elider.h" |
| 30 #include "ui/base/theme_provider.h" | 30 #include "ui/base/theme_provider.h" |
| 31 #include "unicode/ubidi.h" | 31 #include "unicode/ubidi.h" |
| 32 #include "views/controls/button/text_button.h" | 32 #include "views/controls/button/text_button.h" |
| 33 #include "views/controls/label.h" | 33 #include "views/controls/label.h" |
| 34 #include "views/grid_layout.h" | 34 #include "views/grid_layout.h" |
| 35 #include "views/layout/layout_constants.h" |
| 35 #include "views/painter.h" | 36 #include "views/painter.h" |
| 36 #include "views/standard_layout.h" | |
| 37 #include "views/widget/widget.h" | 37 #include "views/widget/widget.h" |
| 38 #include "views/window/window.h" | 38 #include "views/window/window.h" |
| 39 | 39 |
| 40 #if defined(OS_WIN) | 40 #if defined(OS_WIN) |
| 41 #include <commctrl.h> | 41 #include <commctrl.h> |
| 42 #include <dwmapi.h> | 42 #include <dwmapi.h> |
| 43 #include <objidl.h> | 43 #include <objidl.h> |
| 44 | 44 |
| 45 #include "base/win/scoped_gdi_object.h" | 45 #include "base/win/scoped_gdi_object.h" |
| 46 #include "ui/base/win/hwnd_util.h" | 46 #include "ui/base/win/hwnd_util.h" |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 opt_in_view_ = NULL; | 1201 opt_in_view_ = NULL; |
| 1202 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); | 1202 PromoCounter* counter = model_->profile()->GetInstantPromoCounter(); |
| 1203 DCHECK(counter); | 1203 DCHECK(counter); |
| 1204 counter->Hide(); | 1204 counter->Hide(); |
| 1205 if (opt_in) { | 1205 if (opt_in) { |
| 1206 browser::ShowInstantConfirmDialogIfNecessary( | 1206 browser::ShowInstantConfirmDialogIfNecessary( |
| 1207 location_bar_->GetWindow()->GetNativeWindow(), model_->profile()); | 1207 location_bar_->GetWindow()->GetNativeWindow(), model_->profile()); |
| 1208 } | 1208 } |
| 1209 UpdatePopupAppearance(); | 1209 UpdatePopupAppearance(); |
| 1210 } | 1210 } |
| OLD | NEW |