| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 public: | 48 public: |
| 49 // |disable_wallet| overrides the starting value, which is normally set by a | 49 // |disable_wallet| overrides the starting value, which is normally set by a |
| 50 // pref. | 50 // pref. |
| 51 AccountChooserModel(AccountChooserModelDelegate* delegate, | 51 AccountChooserModel(AccountChooserModelDelegate* delegate, |
| 52 Profile* profile, | 52 Profile* profile, |
| 53 bool disable_wallet, | 53 bool disable_wallet, |
| 54 const AutofillMetrics& metric_logger); | 54 const AutofillMetrics& metric_logger); |
| 55 virtual ~AccountChooserModel(); | 55 virtual ~AccountChooserModel(); |
| 56 | 56 |
| 57 // ui::SimpleMenuModel::Delegate implementation. | 57 // ui::SimpleMenuModel::Delegate implementation. |
| 58 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 58 virtual bool IsCommandIdChecked(int command_id) const override; |
| 59 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 59 virtual bool IsCommandIdEnabled(int command_id) const override; |
| 60 virtual bool GetAcceleratorForCommandId( | 60 virtual bool GetAcceleratorForCommandId( |
| 61 int command_id, | 61 int command_id, |
| 62 ui::Accelerator* accelerator) OVERRIDE; | 62 ui::Accelerator* accelerator) override; |
| 63 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 63 virtual void ExecuteCommand(int command_id, int event_flags) override; |
| 64 | 64 |
| 65 // Sets the selection to the given wallet account. | 65 // Sets the selection to the given wallet account. |
| 66 void SelectWalletAccount(size_t user_index); | 66 void SelectWalletAccount(size_t user_index); |
| 67 | 67 |
| 68 // Sets the selection to the local Autofill data. | 68 // Sets the selection to the local Autofill data. |
| 69 void SelectUseAutofill(); | 69 void SelectUseAutofill(); |
| 70 | 70 |
| 71 // Returns true if there are any accounts for the user to choose from. | 71 // Returns true if there are any accounts for the user to choose from. |
| 72 bool HasAccountsToChoose() const; | 72 bool HasAccountsToChoose() const; |
| 73 | 73 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // The names (emails) of the signed in accounts, gotten from the | 129 // The names (emails) of the signed in accounts, gotten from the |
| 130 // Online Wallet service. | 130 // Online Wallet service. |
| 131 std::vector<std::string> wallet_accounts_; | 131 std::vector<std::string> wallet_accounts_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(AccountChooserModel); | 133 DISALLOW_COPY_AND_ASSIGN(AccountChooserModel); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace autofill | 136 } // namespace autofill |
| 137 | 137 |
| 138 #endif // CHROME_BROWSER_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ | 138 #endif // CHROME_BROWSER_UI_AUTOFILL_ACCOUNT_CHOOSER_MODEL_H_ |
| OLD | NEW |