| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gfx/font.h" | |
| 13 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 14 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 15 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 16 #include "base/logging.h" | 15 #include "base/logging.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/bubble_positioner.h" | 21 #include "chrome/browser/bubble_positioner.h" |
| 23 #include "chrome/browser/defaults.h" | 22 #include "chrome/browser/defaults.h" |
| 24 #include "chrome/browser/gtk/gtk_util.h" | 23 #include "chrome/browser/gtk/gtk_util.h" |
| 25 #include "chrome/browser/profile.h" | 24 #include "chrome/browser/profile.h" |
| 26 #include "chrome/browser/search_engines/template_url.h" | 25 #include "chrome/browser/search_engines/template_url.h" |
| 27 #include "chrome/browser/search_engines/template_url_model.h" | 26 #include "chrome/browser/search_engines/template_url_model.h" |
| 28 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
| 28 #include "gfx/font.h" |
| 29 #include "gfx/gtk_util.h" | 29 #include "gfx/gtk_util.h" |
| 30 #include "gfx/rect.h" | 30 #include "gfx/rect.h" |
| 31 #include "grit/theme_resources.h" | 31 #include "grit/theme_resources.h" |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 const GdkColor kBorderColor = GDK_COLOR_RGB(0xc7, 0xca, 0xce); | 35 const GdkColor kBorderColor = GDK_COLOR_RGB(0xc7, 0xca, 0xce); |
| 36 const GdkColor kBackgroundColor = GDK_COLOR_RGB(0xff, 0xff, 0xff); | 36 const GdkColor kBackgroundColor = GDK_COLOR_RGB(0xff, 0xff, 0xff); |
| 37 const GdkColor kSelectedBackgroundColor = GDK_COLOR_RGB(0xdf, 0xe6, 0xf6); | 37 const GdkColor kSelectedBackgroundColor = GDK_COLOR_RGB(0xdf, 0xe6, 0xf6); |
| 38 const GdkColor kHoveredBackgroundColor = GDK_COLOR_RGB(0xef, 0xf2, 0xfa); | 38 const GdkColor kHoveredBackgroundColor = GDK_COLOR_RGB(0xef, 0xf2, 0xfa); |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 // static | 506 // static |
| 507 AutocompletePopupView* AutocompletePopupView::CreatePopupView( | 507 AutocompletePopupView* AutocompletePopupView::CreatePopupView( |
| 508 const gfx::Font& font, | 508 const gfx::Font& font, |
| 509 AutocompleteEditView* edit_view, | 509 AutocompleteEditView* edit_view, |
| 510 AutocompleteEditModel* edit_model, | 510 AutocompleteEditModel* edit_model, |
| 511 Profile* profile, | 511 Profile* profile, |
| 512 const BubblePositioner* bubble_positioner) { | 512 const BubblePositioner* bubble_positioner) { |
| 513 return new AutocompletePopupViewGtk(edit_view, edit_model, profile, | 513 return new AutocompletePopupViewGtk(edit_view, edit_model, profile, |
| 514 bubble_positioner); | 514 bubble_positioner); |
| 515 } | 515 } |
| OLD | NEW |