Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | |
| 7 | |
| 8 #include <base/macros.h> | |
| 9 | |
| 10 class Profile; | |
| 11 | |
| 12 namespace base { | |
| 13 class FilePath; | |
| 14 } // namespace base | |
| 15 | |
| 16 namespace chromeos { | |
| 17 | |
| 18 // Singleton class used to launch a note-taking app. | |
| 19 class NoteTakingHelper { | |
| 20 public: | |
| 21 static void Initialize(); | |
| 22 static void Shutdown(); | |
|
Daniel Erat
2016/12/02 01:07:55
should be "ShutDown" but i'm matching what we call
| |
| 23 static NoteTakingHelper* Get(); | |
| 24 | |
| 25 // Returns true if an app that can be used to take notes is available. UI | |
| 26 // surfaces that call LaunchAppForNewNote() should be hidden otherwise. | |
| 27 bool IsAppAvailable(Profile* profile); | |
| 28 | |
| 29 // Launches the note-taking app to create a new note, optionally additionally | |
| 30 // passing a file (|path| may be empty). IsAppAvailable() must be called | |
| 31 // first. | |
| 32 void LaunchAppForNewNote(Profile* profile, const base::FilePath& path); | |
| 33 | |
| 34 private: | |
| 35 NoteTakingHelper(); | |
| 36 ~NoteTakingHelper(); | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(NoteTakingHelper); | |
| 39 }; | |
| 40 | |
| 41 } // namespace chromeos | |
| 42 | |
| 43 #endif // CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ | |
| OLD | NEW |