Chromium Code Reviews| Index: chrome/browser/chromeos/note_taking_helper.h |
| diff --git a/chrome/browser/chromeos/note_taking_helper.h b/chrome/browser/chromeos/note_taking_helper.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8175e8ed348d3fde674b3ab2e7ee6a302477bce |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/note_taking_helper.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |
| +#define CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |
| + |
| +#include <base/macros.h> |
| + |
| +class Profile; |
| + |
| +namespace base { |
| +class FilePath; |
| +} // namespace base |
| + |
| +namespace chromeos { |
| + |
| +// Singleton class used to launch a note-taking app. |
| +class NoteTakingHelper { |
| + public: |
| + static void Initialize(); |
| + static void Shutdown(); |
|
Daniel Erat
2016/12/02 01:07:55
should be "ShutDown" but i'm matching what we call
|
| + static NoteTakingHelper* Get(); |
| + |
| + // Returns true if an app that can be used to take notes is available. UI |
| + // surfaces that call LaunchAppForNewNote() should be hidden otherwise. |
| + bool IsAppAvailable(Profile* profile); |
| + |
| + // Launches the note-taking app to create a new note, optionally additionally |
| + // passing a file (|path| may be empty). IsAppAvailable() must be called |
| + // first. |
| + void LaunchAppForNewNote(Profile* profile, const base::FilePath& path); |
| + |
| + private: |
| + NoteTakingHelper(); |
| + ~NoteTakingHelper(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NoteTakingHelper); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_NOTE_TAKING_HELPER_H_ |