OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_view_gtk.h" | 5 #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "app/resource_bundle.h" | |
13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
14 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
15 #include "base/logging.h" | 14 #include "base/logging.h" |
16 #include "base/stl_util-inl.h" | 15 #include "base/stl_util-inl.h" |
17 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
18 #include "chrome/browser/autocomplete/autocomplete.h" | 17 #include "chrome/browser/autocomplete/autocomplete.h" |
19 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 18 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
20 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" | 19 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" |
21 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 20 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
22 #include "chrome/browser/defaults.h" | 21 #include "chrome/browser/defaults.h" |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 (text_width - actual_content_width + gtk_offset - | 671 (text_width - actual_content_width + gtk_offset - |
673 (actual_description_width / PANGO_SCALE)), | 672 (actual_description_width / PANGO_SCALE)), |
674 content_y, layout_); | 673 content_y, layout_); |
675 } | 674 } |
676 } | 675 } |
677 | 676 |
678 g_object_unref(gc); | 677 g_object_unref(gc); |
679 | 678 |
680 return TRUE; | 679 return TRUE; |
681 } | 680 } |
OLD | NEW |