OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/automation_messages.h" | 10 #include "chrome/common/automation_messages.h" |
11 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.h" |
12 #include "skia/ext/platform_canvas.h" | 12 #include "skia/ext/platform_canvas.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
17 #include "ui/gfx/codec/png_codec.h" | 17 #include "ui/gfx/codec/png_codec.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
20 | 20 |
21 using WebKit::WebFrame; | 21 using WebKit::WebFrame; |
22 using WebKit::WebSize; | 22 using WebKit::WebSize; |
23 using WebKit::WebURL; | 23 using WebKit::WebURL; |
24 using WebKit::WebView; | 24 using WebKit::WebView; |
25 | 25 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void AutomationRendererHelper::DidCancelClientRedirect(WebFrame* frame) { | 126 void AutomationRendererHelper::DidCancelClientRedirect(WebFrame* frame) { |
127 Send(new AutomationMsg_DidCompleteOrCancelClientRedirect( | 127 Send(new AutomationMsg_DidCompleteOrCancelClientRedirect( |
128 routing_id(), frame->identifier())); | 128 routing_id(), frame->identifier())); |
129 } | 129 } |
130 | 130 |
131 void AutomationRendererHelper::DidCompleteClientRedirect( | 131 void AutomationRendererHelper::DidCompleteClientRedirect( |
132 WebFrame* frame, const WebURL& from) { | 132 WebFrame* frame, const WebURL& from) { |
133 Send(new AutomationMsg_DidCompleteOrCancelClientRedirect( | 133 Send(new AutomationMsg_DidCompleteOrCancelClientRedirect( |
134 routing_id(), frame->identifier())); | 134 routing_id(), frame->identifier())); |
135 } | 135 } |
OLD | NEW |