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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/automation/automation_renderer_helper.h
diff --git a/chrome/renderer/automation/automation_renderer_helper.h b/chrome/renderer/automation/automation_renderer_helper.h
index f83cf4dad2a9ac9f6a5fd95dd2c0ee8a21212613..8369ca253dca4c62bb8258a366c7b1441d36f3ab 100644
--- a/chrome/renderer/automation/automation_renderer_helper.h
+++ b/chrome/renderer/automation/automation_renderer_helper.h
@@ -6,11 +6,16 @@
#define CHROME_RENDERER_AUTOMATION_AUTOMATION_RENDERER_HELPER_H_
#pragma once
+#include <string>
+#include <vector>
+
#include "content/public/renderer/render_view_observer.h"
+#include "content/public/renderer/render_view_observer_tracker.h"
namespace WebKit {
class WebFrame;
class WebURL;
+class WebView;
}
// Filters automation/testing messages sent to a |RenderView| and sends
@@ -20,8 +25,16 @@ class AutomationRendererHelper : public content::RenderViewObserver {
explicit AutomationRendererHelper(content::RenderView* render_view);
virtual ~AutomationRendererHelper();
+ // Takes a snapshot of the entire page without changing layout size.
+ bool SnapshotEntirePage(WebKit::WebView* view,
+ std::vector<unsigned char>* png_data,
+ std::string* error_msg);
+
private:
+ void OnSnapshotEntirePage();
+
// RenderViewObserver implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message);
virtual void WillPerformClientRedirect(
WebKit::WebFrame* frame, const WebKit::WebURL& from,
const WebKit::WebURL& to, double interval, double fire_time);
« 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