| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void OnAvailableNoteTakingAppsUpdated() = 0; | 73 virtual void OnAvailableNoteTakingAppsUpdated() = 0; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 // Callback used to launch a Chrome app. | 76 // Callback used to launch a Chrome app. |
| 77 using LaunchChromeAppCallback = base::Callback<void( | 77 using LaunchChromeAppCallback = base::Callback<void( |
| 78 Profile*, | 78 Profile*, |
| 79 const extensions::Extension*, | 79 const extensions::Extension*, |
| 80 std::unique_ptr<extensions::api::app_runtime::ActionData>, | 80 std::unique_ptr<extensions::api::app_runtime::ActionData>, |
| 81 const base::FilePath&)>; | 81 const base::FilePath&)>; |
| 82 | 82 |
| 83 // Extension manifest "action" entry value that specifies the app supports the |
| 84 // new note flow. |
| 85 static const char kChromeNewNoteAction[]; |
| 86 |
| 83 // Intent action used to launch Android apps. | 87 // Intent action used to launch Android apps. |
| 84 static const char kIntentAction[]; | 88 static const char kIntentAction[]; |
| 85 | 89 |
| 86 // Extension IDs for the development and released versions of the Google Keep | 90 // Extension IDs for the development and released versions of the Google Keep |
| 87 // Chrome app. | 91 // Chrome app. |
| 88 static const char kDevKeepExtensionId[]; | 92 static const char kDevKeepExtensionId[]; |
| 89 static const char kProdKeepExtensionId[]; | 93 static const char kProdKeepExtensionId[]; |
| 90 | 94 |
| 91 static void Initialize(); | 95 static void Initialize(); |
| 92 static void Shutdown(); | 96 static void Shutdown(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 content::NotificationRegistrar registrar_; | 201 content::NotificationRegistrar registrar_; |
| 198 | 202 |
| 199 base::WeakPtrFactory<NoteTakingHelper> weak_ptr_factory_; | 203 base::WeakPtrFactory<NoteTakingHelper> weak_ptr_factory_; |
| 200 | 204 |
| 201 DISALLOW_COPY_AND_ASSIGN(NoteTakingHelper); | 205 DISALLOW_COPY_AND_ASSIGN(NoteTakingHelper); |
| 202 }; | 206 }; |
| 203 | 207 |
| 204 } // namespace chromeos | 208 } // namespace chromeos |
| 205 | 209 |
| 206 #endif // CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | 210 #endif // CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |
| OLD | NEW |