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/l10n_util.h" |
9 #include "base/gfx/gtk_util.h" | 10 #include "base/gfx/gtk_util.h" |
10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
11 #include "chrome/browser/find_bar_controller.h" | 12 #include "chrome/browser/find_bar_controller.h" |
12 #include "chrome/browser/gtk/browser_window_gtk.h" | 13 #include "chrome/browser/gtk/browser_window_gtk.h" |
13 #include "chrome/browser/gtk/custom_button.h" | 14 #include "chrome/browser/gtk/custom_button.h" |
14 #include "chrome/browser/gtk/nine_box.h" | 15 #include "chrome/browser/gtk/nine_box.h" |
15 #include "chrome/browser/gtk/slide_animator_gtk.h" | 16 #include "chrome/browser/gtk/slide_animator_gtk.h" |
16 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 17 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
17 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
18 #include "chrome/common/gtk_util.h" | 19 #include "chrome/common/gtk_util.h" |
19 #include "chrome/common/l10n_util.h" | |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const GdkColor kBackgroundColor = GDK_COLOR_RGB(0xe6, 0xed, 0xf4); | 24 const GdkColor kBackgroundColor = GDK_COLOR_RGB(0xe6, 0xed, 0xf4); |
25 const GdkColor kFrameBorderColor = GDK_COLOR_RGB(0xbe, 0xc8, 0xd4); | 25 const GdkColor kFrameBorderColor = GDK_COLOR_RGB(0xbe, 0xc8, 0xd4); |
26 const GdkColor kTextBorderColor = GDK_COLOR_RGB(0xa6, 0xaf, 0xba); | 26 const GdkColor kTextBorderColor = GDK_COLOR_RGB(0xa6, 0xaf, 0xba); |
27 const GdkColor kTextBorderColorAA = GDK_COLOR_RGB(0xee, 0xf4, 0xfb); | 27 const GdkColor kTextBorderColorAA = GDK_COLOR_RGB(0xee, 0xf4, 0xfb); |
28 | 28 |
29 // Padding around the container. | 29 // Padding around the container. |
(...skipping 289 matching lines...) Loading... |
319 | 319 |
320 // static | 320 // static |
321 void FindBarGtk::OnContainerSizeAllocate(GtkWidget* container, | 321 void FindBarGtk::OnContainerSizeAllocate(GtkWidget* container, |
322 GtkAllocation* allocation, | 322 GtkAllocation* allocation, |
323 FindBarGtk* findbar) { | 323 FindBarGtk* findbar) { |
324 if (!findbar->container_shaped_) { | 324 if (!findbar->container_shaped_) { |
325 GetDialogBackground()->ContourWidget(container); | 325 GetDialogBackground()->ContourWidget(container); |
326 findbar->container_shaped_ = true; | 326 findbar->container_shaped_ = true; |
327 } | 327 } |
328 } | 328 } |
OLD | NEW |