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

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

Issue 2827048: PyAuto: Automation hooks to get/set theme (Closed)
Patch Set: use existing ResetToDefaultTheme Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This implements a browser-side endpoint for UI automation activity. 5 // This implements a browser-side endpoint for UI automation activity.
6 // The client-side endpoint is implemented by AutomationProxy. 6 // The client-side endpoint is implemented by AutomationProxy.
7 // The entire lifetime of this object should be contained within that of 7 // The entire lifetime of this object should be contained within that of
8 // the BrowserProcess, and in particular the NotificationService that's 8 // the BrowserProcess, and in particular the NotificationService that's
9 // hung off of it. 9 // hung off of it.
10 10
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 void OmniboxAcceptInput(Browser* browser, 431 void OmniboxAcceptInput(Browser* browser,
432 DictionaryValue* args, 432 DictionaryValue* args,
433 IPC::Message* reply_message); 433 IPC::Message* reply_message);
434 434
435 // Save the contents of a tab into a file. 435 // Save the contents of a tab into a file.
436 // Uses the JSON interface for input/output. 436 // Uses the JSON interface for input/output.
437 void SaveTabContents(Browser* browser, 437 void SaveTabContents(Browser* browser,
438 DictionaryValue* args, 438 DictionaryValue* args,
439 IPC::Message* reply_message); 439 IPC::Message* reply_message);
440 440
441 // Get info about theme.
442 // Uses the JSON interface for input/output.
443 void GetThemeInfo(Browser* browser,
444 DictionaryValue* args,
445 IPC::Message* reply_message);
446
441 // Util for creating a JSON error return string (dict with key 447 // Util for creating a JSON error return string (dict with key
442 // 'error' and error string value). No need to quote input. 448 // 'error' and error string value). No need to quote input.
443 static std::string JSONErrorString(const std::string& err); 449 static std::string JSONErrorString(const std::string& err);
444 450
445 // Generic pattern for pyautolib 451 // Generic pattern for pyautolib
446 // Uses the JSON interface for input/output. 452 // Uses the JSON interface for input/output.
447 void SendJSONRequest(int handle, 453 void SendJSONRequest(int handle,
448 std::string json_request, 454 std::string json_request,
449 IPC::Message* reply_message); 455 IPC::Message* reply_message);
450 456
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 virtual void Observe(NotificationType type, 866 virtual void Observe(NotificationType type,
861 const NotificationSource& source, 867 const NotificationSource& source,
862 const NotificationDetails& details); 868 const NotificationDetails& details);
863 869
864 void OnRemoveProvider(); // Called via PostTask 870 void OnRemoveProvider(); // Called via PostTask
865 871
866 NotificationRegistrar registrar_; 872 NotificationRegistrar registrar_;
867 }; 873 };
868 874
869 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 875 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698