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

Side by Side Diff: chrome/browser/extensions/api/runtime/runtime_api.h

Issue 9969087: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/runtime/runtime_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_RUNTIME_RUNTIME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
7 #pragma once 7 #pragma once
8 8
9 class Extension; 9 class Extension;
10 class Profile; 10 class Profile;
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class RuntimeEventRouter { 14 class RuntimeEventRouter {
15 public: 15 public:
16 // Dispatches the onInstalled event to the given extension. 16 // Dispatches the onInstalled event to the given extension.
17 static void DispatchOnInstalledEvent(Profile* profile, 17 static void DispatchOnInstalledEvent(Profile* profile,
18 const Extension* extension); 18 const Extension* extension);
19
20 // Dispatches the onLaunched event to the given app.
21 static void DispatchOnLaunchedEvent(Profile* profile,
Matt Perry 2012/04/05 19:32:16 This actually seems like it belongs in the chrome.
Mihai Parparita -not on Chrome 2012/04/05 21:33:18 Done.
22 const Extension* extension);
19 }; 23 };
20 24
21 } // namespace extensions 25 } // namespace extensions
22 26
23 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 27 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698