| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/histogram.h" | 9 #include "base/histogram.h" |
| 10 #include "base/keyboard_codes.h" | 10 #include "base/keyboard_codes.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "chrome/browser/chrome_thread.h" | 12 #include "chrome/browser/chrome_thread.h" |
| 13 #include "chrome/browser/renderer_host/backing_store.h" | 13 #include "chrome/browser/renderer_host/backing_store.h" |
| 14 #include "chrome/browser/renderer_host/backing_store_manager.h" | 14 #include "chrome/browser/renderer_host/backing_store_manager.h" |
| 15 #include "chrome/browser/renderer_host/render_process_host.h" | 15 #include "chrome/browser/renderer_host/render_process_host.h" |
| 16 #include "chrome/browser/renderer_host/render_widget_helper.h" | 16 #include "chrome/browser/renderer_host/render_widget_helper.h" |
| 17 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" | 17 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" |
| 18 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 18 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 19 #include "chrome/browser/renderer_host/video_layer.h" | 19 #include "chrome/browser/renderer_host/video_layer.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/native_web_keyboard_event.h" | 21 #include "chrome/common/native_web_keyboard_event.h" |
| 22 #include "chrome/common/notification_service.h" | 22 #include "chrome/common/notification_service.h" |
| 23 #include "chrome/common/render_messages.h" | 23 #include "chrome/common/render_messages.h" |
| 24 #include "chrome/common/render_messages_params.h" |
| 24 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" |
| 25 #include "webkit/glue/plugins/webplugin.h" | 26 #include "webkit/glue/plugins/webplugin.h" |
| 26 #include "webkit/glue/webcursor.h" | 27 #include "webkit/glue/webcursor.h" |
| 27 | 28 |
| 28 #if defined(TOOLKIT_VIEWS) | 29 #if defined(TOOLKIT_VIEWS) |
| 29 #include "views/view.h" | 30 #include "views/view.h" |
| 30 #endif | 31 #endif |
| 31 | 32 |
| 32 #if defined (OS_MACOSX) | 33 #if defined (OS_MACOSX) |
| 33 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" | 34 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
| (...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 // of this key event. | 1183 // of this key event. |
| 1183 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { | 1184 if (!processed && !is_hidden_ && !front_item.skip_in_browser) { |
| 1184 UnhandledKeyboardEvent(front_item); | 1185 UnhandledKeyboardEvent(front_item); |
| 1185 | 1186 |
| 1186 // WARNING: This RenderWidgetHost can be deallocated at this point | 1187 // WARNING: This RenderWidgetHost can be deallocated at this point |
| 1187 // (i.e. in the case of Ctrl+W, where the call to | 1188 // (i.e. in the case of Ctrl+W, where the call to |
| 1188 // UnhandledKeyboardEvent destroys this RenderWidgetHost). | 1189 // UnhandledKeyboardEvent destroys this RenderWidgetHost). |
| 1189 } | 1190 } |
| 1190 } | 1191 } |
| 1191 } | 1192 } |
| OLD | NEW |