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

Side by Side Diff: chrome/browser/extensions/api/system_indicator/system_indicator_api.h

Issue 11361189: Initial skeleton for System Indicator API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase; Make system_indicator manifest entry grant systemIndicator permission. Created 8 years, 1 month 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 (c) 2012 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_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H_
7
8 #include "chrome/browser/extensions/extension_function.h"
9
10 namespace extensions {
11
12 class SystemIndicatorSetIconFunction : public SyncExtensionFunction {
not at google - send to devlin 2012/11/20 23:58:08 Why not just exactly copy the way this is done fro
dewittj 2012/11/21 22:09:41 Was going to do this in a later CL, but added it h
13 public:
14 SystemIndicatorSetIconFunction();
15 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.setIcon")
16
17 protected:
18 virtual ~SystemIndicatorSetIconFunction() {}
19
20 virtual bool RunImpl() OVERRIDE;
21 };
22
23 class SystemIndicatorEnableFunction : public SyncExtensionFunction {
24 public:
25 SystemIndicatorEnableFunction();
26 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.enable")
27
28 protected:
29 virtual ~SystemIndicatorEnableFunction() {}
30
31 virtual bool RunImpl() OVERRIDE;
32 };
33
34 class SystemIndicatorDisableFunction : public SyncExtensionFunction {
35 public:
36 SystemIndicatorDisableFunction();
37 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.disable");
38
39 protected:
40 virtual ~SystemIndicatorDisableFunction() {}
41
42 virtual bool RunImpl() OVERRIDE;
43 };
44
45 } // namespace extensions
46
47 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698