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

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

Issue 6258015: Remove wstring from autocomplete.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 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 #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/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void GetTabIndex(int handle, int* tabstrip_index); 131 void GetTabIndex(int handle, int* tabstrip_index);
132 void GetTabURL(int handle, bool* success, GURL* url); 132 void GetTabURL(int handle, bool* success, GURL* url);
133 void GetShelfVisibility(int handle, bool* visible); 133 void GetShelfVisibility(int handle, bool* visible);
134 void IsFullscreen(int handle, bool* is_fullscreen); 134 void IsFullscreen(int handle, bool* is_fullscreen);
135 void GetFullscreenBubbleVisibility(int handle, bool* is_visible); 135 void GetFullscreenBubbleVisibility(int handle, bool* is_visible);
136 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, 136 void GetAutocompleteEditForBrowser(int browser_handle, bool* success,
137 int* autocomplete_edit_handle); 137 int* autocomplete_edit_handle);
138 138
139 // Retrieves the visible text from the autocomplete edit. 139 // Retrieves the visible text from the autocomplete edit.
140 void GetAutocompleteEditText(int autocomplete_edit_handle, 140 void GetAutocompleteEditText(int autocomplete_edit_handle,
141 bool* success, std::wstring* text); 141 bool* success, string16* text);
142 142
143 // Sets the visible text from the autocomplete edit. 143 // Sets the visible text from the autocomplete edit.
144 void SetAutocompleteEditText(int autocomplete_edit_handle, 144 void SetAutocompleteEditText(int autocomplete_edit_handle,
145 const std::wstring& text, 145 const string16& text,
146 bool* success); 146 bool* success);
147 147
148 // Retrieves if a query to an autocomplete provider is in progress. 148 // Retrieves if a query to an autocomplete provider is in progress.
149 void AutocompleteEditIsQueryInProgress(int autocomplete_edit_handle, 149 void AutocompleteEditIsQueryInProgress(int autocomplete_edit_handle,
150 bool* success, 150 bool* success,
151 bool* query_in_progress); 151 bool* query_in_progress);
152 152
153 // Retrieves the individual autocomplete matches displayed by the popup. 153 // Retrieves the individual autocomplete matches displayed by the popup.
154 void AutocompleteEditGetMatches(int autocomplete_edit_handle, 154 void AutocompleteEditGetMatches(int autocomplete_edit_handle,
155 bool* success, 155 bool* success,
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // The opposite of the above: translates from the internal data structure 681 // The opposite of the above: translates from the internal data structure
682 // for profiles and credit cards to a ListValue of DictionaryValues. The 682 // for profiles and credit cards to a ListValue of DictionaryValues. The
683 // caller owns the returned object. 683 // caller owns the returned object.
684 static ListValue* GetListFromAutoFillProfiles( 684 static ListValue* GetListFromAutoFillProfiles(
685 const std::vector<AutoFillProfile*>& autofill_profiles); 685 const std::vector<AutoFillProfile*>& autofill_profiles);
686 static ListValue* GetListFromCreditCards( 686 static ListValue* GetListFromCreditCards(
687 const std::vector<CreditCard*>& credit_cards); 687 const std::vector<CreditCard*>& credit_cards);
688 688
689 // Return the map from the internal data representation to the string value 689 // Return the map from the internal data representation to the string value
690 // of auto fill fields and credit card fields. 690 // of auto fill fields and credit card fields.
691 static std::map<AutoFillFieldType, std::wstring> 691 static std::map<AutoFillFieldType, std::string>
evanm 2011/01/24 19:14:14 Why did we use UTF-8 here? You can autofill an e.
Avi (use Gerrit) 2011/01/24 19:46:42 That's not what this map is for. This map does not
692 GetAutoFillFieldToStringMap(); 692 GetAutoFillFieldToStringMap();
693 static std::map<AutoFillFieldType, std::wstring> 693 static std::map<AutoFillFieldType, std::string>
694 GetCreditCardFieldToStringMap(); 694 GetCreditCardFieldToStringMap();
695 695
696 // Get a list of active HTML5 notifications. 696 // Get a list of active HTML5 notifications.
697 // Uses the JSON interface for input/output. 697 // Uses the JSON interface for input/output.
698 void GetActiveNotifications(Browser* browser, 698 void GetActiveNotifications(Browser* browser,
699 DictionaryValue* args, 699 DictionaryValue* args,
700 IPC::Message* reply_message); 700 IPC::Message* reply_message);
701 701
702 // Close an active HTML5 notification. 702 // Close an active HTML5 notification.
703 // Uses the JSON interface for input/output. 703 // Uses the JSON interface for input/output.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 // Used to import settings from browser profiles. 806 // Used to import settings from browser profiles.
807 scoped_refptr<ImporterHost> importer_host_; 807 scoped_refptr<ImporterHost> importer_host_;
808 808
809 // The stored data for the ImportSettings operation. 809 // The stored data for the ImportSettings operation.
810 ImportSettingsData import_settings_data_; 810 ImportSettingsData import_settings_data_;
811 811
812 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 812 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
813 }; 813 };
814 814
815 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 815 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698