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 "base/utf_string_conversions.h" |
19 #include "chrome/browser/gtk/browser_window_gtk.h" | 19 #include "chrome/browser/gtk/browser_window_gtk.h" |
20 #include "chrome/browser/gtk/cairo_cached_surface.h" | 20 #include "chrome/browser/gtk/cairo_cached_surface.h" |
21 #include "chrome/browser/gtk/custom_button.h" | 21 #include "chrome/browser/gtk/custom_button.h" |
22 #include "chrome/browser/gtk/gtk_floating_container.h" | 22 #include "chrome/browser/gtk/gtk_floating_container.h" |
23 #include "chrome/browser/gtk/gtk_theme_provider.h" | 23 #include "chrome/browser/gtk/gtk_theme_provider.h" |
24 #include "chrome/browser/gtk/gtk_util.h" | 24 #include "chrome/browser/gtk/gtk_util.h" |
25 #include "chrome/browser/gtk/nine_box.h" | 25 #include "chrome/browser/gtk/nine_box.h" |
26 #include "chrome/browser/gtk/slide_animator_gtk.h" | 26 #include "chrome/browser/gtk/slide_animator_gtk.h" |
27 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 27 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
28 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 28 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
29 #include "chrome/browser/gtk/view_id_util.h" | 29 #include "chrome/browser/gtk/view_id_util.h" |
30 #include "chrome/browser/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
31 #include "chrome/browser/renderer_host/render_view_host.h" | 31 #include "chrome/browser/renderer_host/render_view_host.h" |
32 #include "chrome/browser/tab_contents/tab_contents.h" | 32 #include "chrome/browser/tab_contents/tab_contents.h" |
33 #include "chrome/browser/ui/browser.h" | 33 #include "chrome/browser/ui/browser.h" |
34 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 34 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
35 #include "chrome/browser/ui/find_bar/find_bar_state.h" | 35 #include "chrome/browser/ui/find_bar/find_bar_state.h" |
36 #include "chrome/common/native_web_keyboard_event.h" | 36 #include "chrome/common/native_web_keyboard_event.h" |
37 #include "chrome/common/notification_service.h" | 37 #include "chrome/common/notification_service.h" |
38 #include "grit/generated_resources.h" | 38 #include "grit/generated_resources.h" |
39 #include "grit/theme_resources.h" | 39 #include "grit/theme_resources.h" |
40 | 40 |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 | 972 |
973 // static | 973 // static |
974 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event, | 974 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event, |
975 FindBarGtk* find_bar) { | 975 FindBarGtk* find_bar) { |
976 g_signal_handlers_disconnect_by_func( | 976 g_signal_handlers_disconnect_by_func( |
977 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), | 977 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), |
978 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), find_bar); | 978 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), find_bar); |
979 | 979 |
980 return FALSE; // Continue propagation. | 980 return FALSE; // Continue propagation. |
981 } | 981 } |
OLD | NEW |