OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/render_widget_host_view_gtk.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" |
6 | 6 |
7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
9 // badly with URLRequestStatus::Status. | 9 // badly with URLRequestStatus::Status. |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
11 | 11 |
12 #include <gtk/gtk.h> | 12 #include <gtk/gtk.h> |
13 #include <gdk/gdk.h> | 13 #include <gdk/gdk.h> |
14 #include <gdk/gdkkeysyms.h> | 14 #include <gdk/gdkkeysyms.h> |
15 #include <gdk/gdkx.h> | 15 #include <gdk/gdkx.h> |
16 #include <cairo/cairo.h> | 16 #include <cairo/cairo.h> |
17 | 17 |
18 #include <algorithm> | 18 #include <algorithm> |
19 #include <string> | 19 #include <string> |
20 | 20 |
21 #include "base/gfx/gtk_util.h" | 21 #include "app/gfx/gtk_util.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/message_loop.h" | 23 #include "base/message_loop.h" |
24 #include "base/string_util.h" | 24 #include "base/string_util.h" |
25 #include "base/task.h" | 25 #include "base/task.h" |
26 #include "base/time.h" | 26 #include "base/time.h" |
27 #include "chrome/common/gtk_util.h" | 27 #include "chrome/common/gtk_util.h" |
28 #include "chrome/common/native_web_keyboard_event.h" | 28 #include "chrome/common/native_web_keyboard_event.h" |
29 #include "chrome/common/x11_util.h" | 29 #include "chrome/common/x11_util.h" |
30 #include "chrome/browser/renderer_host/backing_store.h" | 30 #include "chrome/browser/renderer_host/backing_store.h" |
31 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" | 31 #include "chrome/browser/renderer_host/gtk_im_context_wrapper.h" |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 const NativeWebKeyboardEvent& event) { | 648 const NativeWebKeyboardEvent& event) { |
649 if (!host_) | 649 if (!host_) |
650 return; | 650 return; |
651 | 651 |
652 EditCommands edit_commands; | 652 EditCommands edit_commands; |
653 if (key_bindings_handler_->Match(event, &edit_commands)) { | 653 if (key_bindings_handler_->Match(event, &edit_commands)) { |
654 host_->ForwardEditCommandsForNextKeyEvent(edit_commands); | 654 host_->ForwardEditCommandsForNextKeyEvent(edit_commands); |
655 } | 655 } |
656 host_->ForwardKeyboardEvent(event); | 656 host_->ForwardKeyboardEvent(event); |
657 } | 657 } |
OLD | NEW |