| 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/renderer/render_widget.h" | 5 #include "chrome/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include "app/surface/transport_dib.h" | 7 #include "app/surface/transport_dib.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 362 } |
| 363 pending_input_event_ack_.reset(response); | 363 pending_input_event_ack_.reset(response); |
| 364 } else { | 364 } else { |
| 365 Send(response); | 365 Send(response); |
| 366 } | 366 } |
| 367 | 367 |
| 368 handling_input_event_ = false; | 368 handling_input_event_ = false; |
| 369 | 369 |
| 370 if (WebInputEvent::isKeyboardEventType(input_event->type)) | 370 if (WebInputEvent::isKeyboardEventType(input_event->type)) |
| 371 DidHandleKeyEvent(); | 371 DidHandleKeyEvent(); |
| 372 if (WebInputEvent::isMouseEventType(input_event->type)) | |
| 373 DidHandleMouseEvent(*(static_cast<const WebMouseEvent*>(input_event))); | |
| 374 } | 372 } |
| 375 | 373 |
| 376 void RenderWidget::OnMouseCaptureLost() { | 374 void RenderWidget::OnMouseCaptureLost() { |
| 377 if (webwidget_) | 375 if (webwidget_) |
| 378 webwidget_->mouseCaptureLost(); | 376 webwidget_->mouseCaptureLost(); |
| 379 } | 377 } |
| 380 | 378 |
| 381 void RenderWidget::OnSetFocus(bool enable) { | 379 void RenderWidget::OnSetFocus(bool enable) { |
| 382 has_focus_ = enable; | 380 has_focus_ = enable; |
| 383 if (webwidget_) | 381 if (webwidget_) |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 | 1019 |
| 1022 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { | 1020 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { |
| 1023 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); | 1021 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); |
| 1024 i != plugin_window_moves_.end(); ++i) { | 1022 i != plugin_window_moves_.end(); ++i) { |
| 1025 if (i->window == window) { | 1023 if (i->window == window) { |
| 1026 plugin_window_moves_.erase(i); | 1024 plugin_window_moves_.erase(i); |
| 1027 break; | 1025 break; |
| 1028 } | 1026 } |
| 1029 } | 1027 } |
| 1030 } | 1028 } |
| OLD | NEW |