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/strings/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/public/platform/WebSize.h" |
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 23 #include "third_party/WebKit/public/platform/WebURL.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
28 #include "ui/gfx/codec/png_codec.h" | 28 #include "ui/gfx/codec/png_codec.h" |
29 #include "ui/gfx/point.h" | 29 #include "ui/gfx/point.h" |
30 #include "ui/gfx/rect.h" | 30 #include "ui/gfx/rect.h" |
31 #include "v8/include/v8.h" | 31 #include "v8/include/v8.h" |
32 #include "webkit/glue/webkit_glue.h" | 32 #include "webkit/glue/webkit_glue.h" |
33 | 33 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 routing_id(), frame->identifier())); | 279 routing_id(), frame->identifier())); |
280 } | 280 } |
281 | 281 |
282 void AutomationRendererHelper::OnProcessMouseEvent( | 282 void AutomationRendererHelper::OnProcessMouseEvent( |
283 const AutomationMouseEvent& event) { | 283 const AutomationMouseEvent& event) { |
284 std::string error_msg; | 284 std::string error_msg; |
285 bool success = ProcessMouseEvent(event, &error_msg); | 285 bool success = ProcessMouseEvent(event, &error_msg); |
286 Send(new AutomationMsg_ProcessMouseEventACK( | 286 Send(new AutomationMsg_ProcessMouseEventACK( |
287 routing_id(), success, error_msg)); | 287 routing_id(), success, error_msg)); |
288 } | 288 } |
OLD | NEW |