OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gtk/find_bar_gtk.h" | 5 #include "chrome/browser/ui/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> |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" | 32 #include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" |
33 #include "chrome/browser/ui/gtk/view_id_util.h" | 33 #include "chrome/browser/ui/gtk/view_id_util.h" |
34 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 34 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
35 #include "chrome/common/chrome_notification_types.h" | 35 #include "chrome/common/chrome_notification_types.h" |
36 #include "content/public/browser/native_web_keyboard_event.h" | 36 #include "content/public/browser/native_web_keyboard_event.h" |
37 #include "content/public/browser/notification_source.h" | 37 #include "content/public/browser/notification_source.h" |
38 #include "content/public/browser/render_view_host.h" | 38 #include "content/public/browser/render_view_host.h" |
39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "grit/theme_resources.h" | 41 #include "grit/theme_resources.h" |
42 #include "grit/ui_resources_standard.h" | 42 #include "grit/ui_resources.h" |
43 #include "ui/base/gtk/gtk_floating_container.h" | 43 #include "ui/base/gtk/gtk_floating_container.h" |
44 #include "ui/base/gtk/gtk_hig_constants.h" | 44 #include "ui/base/gtk/gtk_hig_constants.h" |
45 #include "ui/base/l10n/l10n_util.h" | 45 #include "ui/base/l10n/l10n_util.h" |
46 #include "ui/base/resource/resource_bundle.h" | 46 #include "ui/base/resource/resource_bundle.h" |
47 #include "ui/gfx/image/cairo_cached_surface.h" | 47 #include "ui/gfx/image/cairo_cached_surface.h" |
48 #include "ui/gfx/image/image.h" | 48 #include "ui/gfx/image/image.h" |
49 | 49 |
50 using content::NativeWebKeyboardEvent; | 50 using content::NativeWebKeyboardEvent; |
51 | 51 |
52 namespace { | 52 namespace { |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 return FALSE; // Continue propagation. | 1001 return FALSE; // Continue propagation. |
1002 } | 1002 } |
1003 | 1003 |
1004 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event) { | 1004 gboolean FindBarGtk::OnFocusOut(GtkWidget* entry, GdkEventFocus* event) { |
1005 g_signal_handlers_disconnect_by_func( | 1005 g_signal_handlers_disconnect_by_func( |
1006 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), | 1006 gdk_keymap_get_for_display(gtk_widget_get_display(entry)), |
1007 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), this); | 1007 reinterpret_cast<gpointer>(&OnKeymapDirectionChanged), this); |
1008 | 1008 |
1009 return FALSE; // Continue propagation. | 1009 return FALSE; // Continue propagation. |
1010 } | 1010 } |
OLD | NEW |