Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: chrome/browser/chromeos/note_taking_helper.h

Issue 2526893003: chromeos: Add NoteTakingHelper class. (Closed)
Patch Set: drop is-note-taking-app-window stuff Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/note_taking_app_utils.cc ('k') | chrome/browser/chromeos/note_taking_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698