| OLD | NEW |
| 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/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 // The opposite of the above: translates from the internal data structure | 682 // The opposite of the above: translates from the internal data structure |
| 683 // for profiles and credit cards to a ListValue of DictionaryValues. The | 683 // for profiles and credit cards to a ListValue of DictionaryValues. The |
| 684 // caller owns the returned object. | 684 // caller owns the returned object. |
| 685 static ListValue* GetListFromAutoFillProfiles( | 685 static ListValue* GetListFromAutoFillProfiles( |
| 686 const std::vector<AutoFillProfile*>& autofill_profiles); | 686 const std::vector<AutoFillProfile*>& autofill_profiles); |
| 687 static ListValue* GetListFromCreditCards( | 687 static ListValue* GetListFromCreditCards( |
| 688 const std::vector<CreditCard*>& credit_cards); | 688 const std::vector<CreditCard*>& credit_cards); |
| 689 | 689 |
| 690 // Return the map from the internal data representation to the string value | 690 // Return the map from the internal data representation to the string value |
| 691 // of auto fill fields and credit card fields. | 691 // of auto fill fields and credit card fields. |
| 692 static std::map<AutoFillFieldType, std::wstring> | 692 static std::map<AutoFillFieldType, std::string> |
| 693 GetAutoFillFieldToStringMap(); | 693 GetAutoFillFieldToStringMap(); |
| 694 static std::map<AutoFillFieldType, std::wstring> | 694 static std::map<AutoFillFieldType, std::string> |
| 695 GetCreditCardFieldToStringMap(); | 695 GetCreditCardFieldToStringMap(); |
| 696 | 696 |
| 697 // Get a list of active HTML5 notifications. | 697 // Get a list of active HTML5 notifications. |
| 698 // Uses the JSON interface for input/output. | 698 // Uses the JSON interface for input/output. |
| 699 void GetActiveNotifications(Browser* browser, | 699 void GetActiveNotifications(Browser* browser, |
| 700 DictionaryValue* args, | 700 DictionaryValue* args, |
| 701 IPC::Message* reply_message); | 701 IPC::Message* reply_message); |
| 702 | 702 |
| 703 // Close an active HTML5 notification. | 703 // Close an active HTML5 notification. |
| 704 // Uses the JSON interface for input/output. | 704 // Uses the JSON interface for input/output. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 // Used to import settings from browser profiles. | 807 // Used to import settings from browser profiles. |
| 808 scoped_refptr<ImporterHost> importer_host_; | 808 scoped_refptr<ImporterHost> importer_host_; |
| 809 | 809 |
| 810 // The stored data for the ImportSettings operation. | 810 // The stored data for the ImportSettings operation. |
| 811 ImportSettingsData import_settings_data_; | 811 ImportSettingsData import_settings_data_; |
| 812 | 812 |
| 813 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 813 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 814 }; | 814 }; |
| 815 | 815 |
| 816 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 816 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |