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

Unified Diff: chrome/browser/chromeos/note_taking_app_utils.h

Issue 2219953004: Refactor download image-MIME-type-detection code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more tests Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/note_taking_app_utils.h
diff --git a/chrome/browser/chromeos/note_taking_app_utils.h b/chrome/browser/chromeos/note_taking_app_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..1f326105a8256bf56a6686e2eeeaea20554ec30a
--- /dev/null
+++ b/chrome/browser/chromeos/note_taking_app_utils.h
@@ -0,0 +1,27 @@
+// 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_APP_UTILS_H_
+#define CHROME_BROWSER_CHROMEOS_NOTE_TAKING_APP_UTILS_H_
+
+class Profile;
+
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace chromeos {
+
+// Returns true if an app that can be used to take notes is available.
+bool IsNoteTakingAppAvailable(Profile* profile);
+
+// Launches the note-taking app to create a new note, optionally additionally
+// passing a file (|path| may be empty). IsNoteTakingAppAvailable() must be
+// called first.
+void LaunchNoteTakingAppForNewNote(Profile* profile,
+ const base::FilePath& path);
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NOTE_TAKING_APP_UTILS_H_
« no previous file with comments | « ash/common/system/chromeos/palette/palette_utils.cc ('k') | chrome/browser/chromeos/note_taking_app_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698