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

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

Issue 192017: Convert std::wstring encoding names to std::string in a bunch of files. (Closed)
Patch Set: mac and linux fixes Created 11 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 bool* success, 425 bool* success,
426 bool* value); 426 bool* value);
427 427
428 // Sets the bool value for preference with name |name|. 428 // Sets the bool value for preference with name |name|.
429 void SetBooleanPreference(int handle, 429 void SetBooleanPreference(int handle,
430 const std::wstring& name, 430 const std::wstring& name,
431 bool value, 431 bool value,
432 bool* success); 432 bool* success);
433 433
434 // Gets the current used encoding name of the page in the specified tab. 434 // Gets the current used encoding name of the page in the specified tab.
435 void GetPageCurrentEncoding(int tab_handle, std::wstring* current_encoding); 435 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding);
436 436
437 // Uses the specified encoding to override the encoding of the page in the 437 // Uses the specified encoding to override the encoding of the page in the
438 // specified tab. 438 // specified tab.
439 void OverrideEncoding(int tab_handle, 439 void OverrideEncoding(int tab_handle,
440 const std::wstring& encoding_name, 440 const std::string& encoding_name,
441 bool* success); 441 bool* success);
442 442
443 void SavePackageShouldPromptUser(bool should_prompt); 443 void SavePackageShouldPromptUser(bool should_prompt);
444 444
445 // Enables extension automation (for e.g. UITests). 445 // Enables extension automation (for e.g. UITests).
446 void SetEnableExtensionAutomation(bool automation_enabled); 446 void SetEnableExtensionAutomation(bool automation_enabled);
447 447
448 void GetWindowTitle(int handle, string16* text); 448 void GetWindowTitle(int handle, string16* text);
449 449
450 // Returns the number of blocked popups in the tab |handle|. 450 // Returns the number of blocked popups in the tab |handle|.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 virtual void Observe(NotificationType type, 561 virtual void Observe(NotificationType type,
562 const NotificationSource& source, 562 const NotificationSource& source,
563 const NotificationDetails& details); 563 const NotificationDetails& details);
564 564
565 void OnRemoveProvider(); // Called via PostTask 565 void OnRemoveProvider(); // Called via PostTask
566 566
567 NotificationRegistrar registrar_; 567 NotificationRegistrar registrar_;
568 }; 568 };
569 569
570 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 570 #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