Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome/renderer/automation/automation_renderer_helper.h

Issue 8416024: Re-land 107645 with static initializers removed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove static initializers Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_ 5 #ifndef CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_
6 #define CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_ 6 #define CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10 #include <vector>
11
9 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
13 #include "content/public/renderer/render_view_observer_tracker.h"
10 14
11 namespace WebKit { 15 namespace WebKit {
12 class WebFrame; 16 class WebFrame;
13 class WebURL; 17 class WebURL;
18 class WebView;
14 } 19 }
15 20
16 // Filters automation/testing messages sent to a |RenderView| and sends 21 // Filters automation/testing messages sent to a |RenderView| and sends
17 // automation/testing messages to the browser. 22 // automation/testing messages to the browser.
18 class AutomationRendererHelper : public content::RenderViewObserver { 23 class AutomationRendererHelper : public content::RenderViewObserver {
19 public: 24 public:
20 explicit AutomationRendererHelper(content::RenderView* render_view); 25 explicit AutomationRendererHelper(content::RenderView* render_view);
21 virtual ~AutomationRendererHelper(); 26 virtual ~AutomationRendererHelper();
22 27
28 // Takes a snapshot of the entire page without changing layout size.
29 bool SnapshotEntirePage(WebKit::WebView* view,
30 std::vector<unsigned char>* png_data,
31 std::string* error_msg);
32
23 private: 33 private:
34 void OnSnapshotEntirePage();
35
24 // RenderViewObserver implementation. 36 // RenderViewObserver implementation.
37 virtual bool OnMessageReceived(const IPC::Message& message);
25 virtual void WillPerformClientRedirect( 38 virtual void WillPerformClientRedirect(
26 WebKit::WebFrame* frame, const WebKit::WebURL& from, 39 WebKit::WebFrame* frame, const WebKit::WebURL& from,
27 const WebKit::WebURL& to, double interval, double fire_time); 40 const WebKit::WebURL& to, double interval, double fire_time);
28 virtual void DidCancelClientRedirect(WebKit::WebFrame* frame); 41 virtual void DidCancelClientRedirect(WebKit::WebFrame* frame);
29 virtual void DidCompleteClientRedirect(WebKit::WebFrame* frame, 42 virtual void DidCompleteClientRedirect(WebKit::WebFrame* frame,
30 const WebKit::WebURL& from); 43 const WebKit::WebURL& from);
31 44
32 DISALLOW_COPY_AND_ASSIGN(AutomationRendererHelper); 45 DISALLOW_COPY_AND_ASSIGN(AutomationRendererHelper);
33 }; 46 };
34 47
35 #endif // CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_ 48 #endif // CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/renderer/automation/automation_renderer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698