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

Side by Side Diff: chrome/browser/extensions/api/app/app_api.h

Issue 10080017: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove debug logging code Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app/app_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_APP_APP_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 class Extension;
12 class Profile;
13
14 namespace extensions {
15
11 class AppNotifyFunction : public SyncExtensionFunction { 16 class AppNotifyFunction : public SyncExtensionFunction {
12 virtual ~AppNotifyFunction() {} 17 virtual ~AppNotifyFunction() {}
13 virtual bool RunImpl() OVERRIDE; 18 virtual bool RunImpl() OVERRIDE;
14 DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.notify"); 19 DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.notify");
15 }; 20 };
16 21
17 class AppClearAllNotificationsFunction : public SyncExtensionFunction { 22 class AppClearAllNotificationsFunction : public SyncExtensionFunction {
18 virtual ~AppClearAllNotificationsFunction() {} 23 virtual ~AppClearAllNotificationsFunction() {}
19 virtual bool RunImpl() OVERRIDE; 24 virtual bool RunImpl() OVERRIDE;
20 DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.clearAllNotifications"); 25 DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.clearAllNotifications");
21 }; 26 };
22 27
28 class AppEventRouter {
29 public:
30 // Dispatches the onLaunched event to the given app.
31 static void DispatchOnLaunchedEvent(Profile* profile,
32 const Extension* extension);
33 };
34
35 } // namespace extensions
36
23 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ 37 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app/app_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698