OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer_host/gtk_im_context_wrapper.h" | 5 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" |
6 | 6 |
7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/third_party/icu/icu_utf.h" | 15 #include "base/third_party/icu/icu_utf.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/app/chrome_command_ids.h" | 17 #include "chrome/app/chrome_command_ids.h" |
18 #include "chrome/browser/ui/gtk/gtk_util.h" | 18 #include "chrome/browser/ui/gtk/gtk_util.h" |
19 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" | 19 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
20 #include "chrome/common/native_web_keyboard_event.h" | |
21 #include "chrome/common/render_messages.h" | 20 #include "chrome/common/render_messages.h" |
22 #include "content/browser/renderer_host/render_widget_host.h" | 21 #include "content/browser/renderer_host/render_widget_host.h" |
| 22 #include "content/common/native_web_keyboard_event.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "third_party/skia/include/core/SkColor.h" | 24 #include "third_party/skia/include/core/SkColor.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/gfx/gtk_util.h" | 26 #include "ui/gfx/gtk_util.h" |
27 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
28 | 28 |
29 #if !defined(TOOLKIT_VIEWS) | 29 #if !defined(TOOLKIT_VIEWS) |
30 #include "chrome/browser/ui/gtk/menu_gtk.h" | 30 #include "chrome/browser/ui/gtk/menu_gtk.h" |
31 #endif | 31 #endif |
32 | 32 |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 } while (pango_attr_iterator_next(iter)); | 703 } while (pango_attr_iterator_next(iter)); |
704 pango_attr_iterator_destroy(iter); | 704 pango_attr_iterator_destroy(iter); |
705 } | 705 } |
706 | 706 |
707 // Use a black thin underline by default. | 707 // Use a black thin underline by default. |
708 if (underlines->empty()) { | 708 if (underlines->empty()) { |
709 underlines->push_back( | 709 underlines->push_back( |
710 WebKit::WebCompositionUnderline(0, length, SK_ColorBLACK, false)); | 710 WebKit::WebCompositionUnderline(0, length, SK_ColorBLACK, false)); |
711 } | 711 } |
712 } | 712 } |
OLD | NEW |