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/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 "app/gfx/gtk_util.h" | 9 #include "app/gfx/gtk_util.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
14 #include "chrome/browser/find_bar_controller.h" | 14 #include "chrome/browser/find_bar_controller.h" |
15 #include "chrome/browser/gtk/browser_window_gtk.h" | 15 #include "chrome/browser/gtk/browser_window_gtk.h" |
16 #include "chrome/browser/gtk/cairo_cached_surface.h" | 16 #include "chrome/browser/gtk/cairo_cached_surface.h" |
17 #include "chrome/browser/gtk/custom_button.h" | 17 #include "chrome/browser/gtk/custom_button.h" |
18 #include "chrome/browser/gtk/gtk_floating_container.h" | 18 #include "chrome/browser/gtk/gtk_floating_container.h" |
19 #include "chrome/browser/gtk/gtk_theme_provider.h" | 19 #include "chrome/browser/gtk/gtk_theme_provider.h" |
20 #include "chrome/browser/gtk/nine_box.h" | 20 #include "chrome/browser/gtk/nine_box.h" |
21 #include "chrome/browser/gtk/slide_animator_gtk.h" | 21 #include "chrome/browser/gtk/slide_animator_gtk.h" |
22 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 22 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
23 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" | 23 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h" |
24 #include "chrome/browser/gtk/view_id_util.h" | 24 #include "chrome/browser/gtk/view_id_util.h" |
25 #include "chrome/browser/tab_contents/tab_contents.h" | 25 #include "chrome/browser/tab_contents/tab_contents.h" |
26 #include "chrome/common/gtk_util.h" | 26 #include "chrome/common/gtk_util.h" |
27 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "grit/theme_resources.h" | 29 #include "grit/theme_resources.h" |
30 #include "webkit/api/public/gtk/WebInputEventFactory.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/gtk/WebInputEventFactory.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Used as the color of the text in the entry box and the text for the results | 34 // Used as the color of the text in the entry box and the text for the results |
35 // label for failure searches. | 35 // label for failure searches. |
36 const GdkColor kEntryTextColor = gfx::kGdkBlack; | 36 const GdkColor kEntryTextColor = gfx::kGdkBlack; |
37 | 37 |
38 // Used as the color of the background of the entry box and the background of | 38 // Used as the color of the background of the entry box and the background of |
39 // the find label for successful searches. | 39 // the find label for successful searches. |
40 const GdkColor kEntryBackgroundColor = gfx::kGdkWhite; | 40 const GdkColor kEntryBackgroundColor = gfx::kGdkWhite; |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 } | 822 } |
823 | 823 |
824 // static | 824 // static |
825 gboolean FindBarGtk::OnButtonPress(GtkWidget* text_entry, GdkEventButton* e, | 825 gboolean FindBarGtk::OnButtonPress(GtkWidget* text_entry, GdkEventButton* e, |
826 FindBarGtk* find_bar) { | 826 FindBarGtk* find_bar) { |
827 find_bar->StoreOutsideFocus(); | 827 find_bar->StoreOutsideFocus(); |
828 | 828 |
829 // Continue propagating the event. | 829 // Continue propagating the event. |
830 return FALSE; | 830 return FALSE; |
831 } | 831 } |
OLD | NEW |