| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #include "chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h" |
| 6 | 6 |
| 7 #include "ash/common/system/chromeos/palette/palette_utils.h" | 7 #include "ash/common/system/chromeos/palette/palette_utils.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 l10n_util::GetStringUTF16( | 41 l10n_util::GetStringUTF16( |
| 42 IDS_OPTIONS_DEVICE_GROUP_STYLUS_SETTINGS_BUTTON)); | 42 IDS_OPTIONS_DEVICE_GROUP_STYLUS_SETTINGS_BUTTON)); |
| 43 localized_strings->SetString( | 43 localized_strings->SetString( |
| 44 "stylusAutoOpenStylusTools", | 44 "stylusAutoOpenStylusTools", |
| 45 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_AUTO_OPEN_STYLUS_TOOLS)); | 45 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_AUTO_OPEN_STYLUS_TOOLS)); |
| 46 localized_strings->SetString( | 46 localized_strings->SetString( |
| 47 "stylusEnableStylusTools", | 47 "stylusEnableStylusTools", |
| 48 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_ENABLE_STYLUS_TOOLS)); | 48 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_ENABLE_STYLUS_TOOLS)); |
| 49 localized_strings->SetString( | 49 localized_strings->SetString( |
| 50 "stylusFindMoreApps", | 50 "stylusFindMoreApps", |
| 51 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_FIND_MORE_APPS)); | 51 l10n_util::GetStringUTF16(IDS_SETTINGS_STYLUS_FIND_MORE_APPS_PRIMARY)); |
| 52 localized_strings->SetString( | 52 localized_strings->SetString( |
| 53 "stylusNoteTakingApp", | 53 "stylusNoteTakingApp", |
| 54 l10n_util::GetStringUTF16(IDS_OPTIONS_STYLUS_NOTE_TAKING_APP_LABEL)); | 54 l10n_util::GetStringUTF16(IDS_OPTIONS_STYLUS_NOTE_TAKING_APP_LABEL)); |
| 55 localized_strings->SetString( | 55 localized_strings->SetString( |
| 56 "stylusNoteTakingAppNoneAvailable", | 56 "stylusNoteTakingAppNoneAvailable", |
| 57 l10n_util::GetStringUTF16( | 57 l10n_util::GetStringUTF16( |
| 58 IDS_OPTIONS_STYLUS_NOTE_TAKING_APP_NONE_AVAILABLE)); | 58 IDS_OPTIONS_STYLUS_NOTE_TAKING_APP_NONE_AVAILABLE)); |
| 59 localized_strings->SetString( | 59 localized_strings->SetString( |
| 60 "stylusNoteTakingAppWaitingForAndroid", | 60 "stylusNoteTakingAppWaitingForAndroid", |
| 61 l10n_util::GetStringUTF16( | 61 l10n_util::GetStringUTF16( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 LOG(ERROR) << "Got unknown note-taking-app ID \"" << app_id << "\""; | 121 LOG(ERROR) << "Got unknown note-taking-app ID \"" << app_id << "\""; |
| 122 return; | 122 return; |
| 123 } | 123 } |
| 124 | 124 |
| 125 NoteTakingHelper::Get()->SetPreferredApp(Profile::FromWebUI(web_ui()), | 125 NoteTakingHelper::Get()->SetPreferredApp(Profile::FromWebUI(web_ui()), |
| 126 app_id); | 126 app_id); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace options | 129 } // namespace options |
| 130 } // namespace chromeos | 130 } // namespace chromeos |
| OLD | NEW |