| 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/gtk/find_bar_gtk.h" | 5 #include "chrome/browser/gtk/find_bar_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "base/utf_string_conversions.h" |
| 18 #include "chrome/browser/browser.h" | 19 #include "chrome/browser/browser.h" |
| 19 #include "chrome/browser/find_bar_controller.h" | 20 #include "chrome/browser/find_bar_controller.h" |
| 20 #include "chrome/browser/find_bar_state.h" | 21 #include "chrome/browser/find_bar_state.h" |
| 21 #include "chrome/browser/gtk/browser_window_gtk.h" | 22 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 22 #include "chrome/browser/gtk/cairo_cached_surface.h" | 23 #include "chrome/browser/gtk/cairo_cached_surface.h" |
| 23 #include "chrome/browser/gtk/custom_button.h" | 24 #include "chrome/browser/gtk/custom_button.h" |
| 24 #include "chrome/browser/gtk/gtk_floating_container.h" | 25 #include "chrome/browser/gtk/gtk_floating_container.h" |
| 25 #include "chrome/browser/gtk/gtk_theme_provider.h" | 26 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 26 #include "chrome/browser/gtk/gtk_util.h" | 27 #include "chrome/browser/gtk/gtk_util.h" |
| 27 #include "chrome/browser/gtk/nine_box.h" | 28 #include "chrome/browser/gtk/nine_box.h" |
| (...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 | 959 |
| 959 // static | 960 // static |
| 960 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event, | 961 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event, |
| 961 FindBarGtk* find_bar) { | 962 FindBarGtk* find_bar) { |
| 962 g_signal_handlers_disconnect_by_func( | 963 g_signal_handlers_disconnect_by_func( |
| 963 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), | 964 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), |
| 964 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), find_bar); | 965 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), find_bar); |
| 965 | 966 |
| 966 return FALSE; // Continue propagation. | 967 return FALSE; // Continue propagation. |
| 967 } | 968 } |
| OLD | NEW |