| 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 "chrome/renderer/automation/automation_renderer_helper.h" | 5 #include "chrome/renderer/automation/automation_renderer_helper.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/string_split.h" | 12 #include "base/strings/string_split.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/common/automation_events.h" | 15 #include "chrome/common/automation_events.h" |
| 16 #include "chrome/common/automation_messages.h" | 16 #include "chrome/common/automation_messages.h" |
| 17 #include "content/public/renderer/render_view.h" | 17 #include "content/public/renderer/render_view.h" |
| 18 #include "content/public/renderer/v8_value_converter.h" | 18 #include "content/public/renderer/v8_value_converter.h" |
| 19 #include "ipc/ipc_channel.h" | 19 #include "ipc/ipc_channel.h" |
| 20 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
| 21 #include "skia/ext/platform_canvas.h" | 21 #include "skia/ext/platform_canvas.h" |
| 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 routing_id(), frame->identifier())); | 281 routing_id(), frame->identifier())); |
| 282 } | 282 } |
| 283 | 283 |
| 284 void AutomationRendererHelper::OnProcessMouseEvent( | 284 void AutomationRendererHelper::OnProcessMouseEvent( |
| 285 const AutomationMouseEvent& event) { | 285 const AutomationMouseEvent& event) { |
| 286 std::string error_msg; | 286 std::string error_msg; |
| 287 bool success = ProcessMouseEvent(event, &error_msg); | 287 bool success = ProcessMouseEvent(event, &error_msg); |
| 288 Send(new AutomationMsg_ProcessMouseEventACK( | 288 Send(new AutomationMsg_ProcessMouseEventACK( |
| 289 routing_id(), success, error_msg)); | 289 routing_id(), success, error_msg)); |
| 290 } | 290 } |
| OLD | NEW |