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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 5572001: Send screenshots back to the client for debugging (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: need to push again to make sure rietveld didn't screw up Created 9 years, 9 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 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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 void SavePackageShouldPromptUser(bool should_prompt); 352 void SavePackageShouldPromptUser(bool should_prompt);
353 353
354 void GetWindowTitle(int handle, string16* text); 354 void GetWindowTitle(int handle, string16* text);
355 355
356 void SetShelfVisibility(int handle, bool visible); 356 void SetShelfVisibility(int handle, bool visible);
357 357
358 // Returns the number of blocked popups in the tab |handle|. 358 // Returns the number of blocked popups in the tab |handle|.
359 void GetBlockedPopupCount(int handle, int* count); 359 void GetBlockedPopupCount(int handle, int* count);
360 360
361 // Captures the entire page for the given tab and saves it as PNG at the
362 // given path.
363 void CaptureEntirePageAsPNG(int tab_handle, const FilePath& path,
364 IPC::Message* reply_message);
365
366 // Generic pattern for pyautolib 361 // Generic pattern for pyautolib
367 // Uses the JSON interface for input/output. 362 // Uses the JSON interface for input/output.
368 void SendJSONRequest(int handle, 363 void SendJSONRequest(int handle,
369 const std::string& json_request, 364 const std::string& json_request,
370 IPC::Message* reply_message); 365 IPC::Message* reply_message);
371 366
372 // Method ptr for json handlers. 367 // Method ptr for json handlers.
373 // Uses the JSON interface for input/output. 368 // Uses the JSON interface for input/output.
374 typedef void (TestingAutomationProvider::*JsonHandler)(DictionaryValue*, 369 typedef void (TestingAutomationProvider::*JsonHandler)(DictionaryValue*,
375 IPC::Message*); 370 IPC::Message*);
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 // input: { "windex": 1, "tab_index": 1 } 850 // input: { "windex": 1, "tab_index": 1 }
856 // output: { "url": "http://www.google.com" } 851 // output: { "url": "http://www.google.com" }
857 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message); 852 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message);
858 853
859 // Get the current url of the specified tab. Uses the JSON interface. 854 // Get the current url of the specified tab. Uses the JSON interface.
860 // Example: 855 // Example:
861 // input: { "windex": 1, "tab_index": 1 } 856 // input: { "windex": 1, "tab_index": 1 }
862 // output: { "title": "Google" } 857 // output: { "title": "Google" }
863 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message); 858 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message);
864 859
860 // Captures the entire page of the the specified tab, including the
861 // non-visible portions of the page, and saves the PNG to a file.
862 // Example:
863 // input: { "windex": 1, "tab_index": 1, "path":"/tmp/foo.png"}
864 // output: none
865 void CaptureEntirePageJSON(
866 DictionaryValue* args, IPC::Message* reply_message);
867
865 // Gets the cookies for the given URL. Uses the JSON interface. 868 // Gets the cookies for the given URL. Uses the JSON interface.
866 // "expiry" refers to the amount of seconds since the Unix epoch. If omitted, 869 // "expiry" refers to the amount of seconds since the Unix epoch. If omitted,
867 // the cookie is valid for the duration of the browser session. 870 // the cookie is valid for the duration of the browser session.
868 // Example: 871 // Example:
869 // input: { "url": "http://www.google.com" } 872 // input: { "url": "http://www.google.com" }
870 // output: { "cookies": [ 873 // output: { "cookies": [
871 // { 874 // {
872 // "name": "PREF", 875 // "name": "PREF",
873 // "value": "123101", 876 // "value": "123101",
874 // "path": "/", 877 // "path": "/",
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 // Used to enumerate browser profiles. 1082 // Used to enumerate browser profiles.
1080 scoped_refptr<ImporterList> importer_list_; 1083 scoped_refptr<ImporterList> importer_list_;
1081 1084
1082 // The stored data for the ImportSettings operation. 1085 // The stored data for the ImportSettings operation.
1083 ImportSettingsData import_settings_data_; 1086 ImportSettingsData import_settings_data_;
1084 1087
1085 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1088 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1086 }; 1089 };
1087 1090
1088 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1091 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698