| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 // change. | 1265 // change. |
| 1266 if (processed && (input_event->type == WebInputEvent::TouchEnd || | 1266 if (processed && (input_event->type == WebInputEvent::TouchEnd || |
| 1267 input_event->type == WebInputEvent::MouseUp)) { | 1267 input_event->type == WebInputEvent::MouseUp)) { |
| 1268 UpdateTextInputState(SHOW_IME_IF_NEEDED, FROM_IME); | 1268 UpdateTextInputState(SHOW_IME_IF_NEEDED, FROM_IME); |
| 1269 } | 1269 } |
| 1270 #endif | 1270 #endif |
| 1271 | 1271 |
| 1272 if (!prevent_default) { | 1272 if (!prevent_default) { |
| 1273 if (WebInputEvent::isKeyboardEventType(input_event->type)) | 1273 if (WebInputEvent::isKeyboardEventType(input_event->type)) |
| 1274 DidHandleKeyEvent(); | 1274 DidHandleKeyEvent(); |
| 1275 if (WebInputEvent::isMouseEventType(input_event->type)) | |
| 1276 DidHandleMouseEvent(*(static_cast<const WebMouseEvent*>(input_event))); | |
| 1277 } | 1275 } |
| 1278 | 1276 |
| 1279 // TODO(rouslan): Fix ChromeOS and Windows 8 behavior of autofill popup with | 1277 // TODO(rouslan): Fix ChromeOS and Windows 8 behavior of autofill popup with |
| 1280 // virtual keyboard. | 1278 // virtual keyboard. |
| 1281 #if !defined(OS_ANDROID) | 1279 #if !defined(OS_ANDROID) |
| 1282 // Virtual keyboard is not supported, so react to focus change immediately. | 1280 // Virtual keyboard is not supported, so react to focus change immediately. |
| 1283 if (processed && (input_event->type == WebInputEvent::TouchEnd || | 1281 if (processed && (input_event->type == WebInputEvent::TouchEnd || |
| 1284 input_event->type == WebInputEvent::MouseUp)) { | 1282 input_event->type == WebInputEvent::MouseUp)) { |
| 1285 FocusChangeComplete(); | 1283 FocusChangeComplete(); |
| 1286 } | 1284 } |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2452 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2450 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2453 video_hole_frames_.AddObserver(frame); | 2451 video_hole_frames_.AddObserver(frame); |
| 2454 } | 2452 } |
| 2455 | 2453 |
| 2456 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2454 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2457 video_hole_frames_.RemoveObserver(frame); | 2455 video_hole_frames_.RemoveObserver(frame); |
| 2458 } | 2456 } |
| 2459 #endif // defined(VIDEO_HOLE) | 2457 #endif // defined(VIDEO_HOLE) |
| 2460 | 2458 |
| 2461 } // namespace content | 2459 } // namespace content |
| OLD | NEW |