Chromium Code Reviews

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: Add manifest parsing and integrate with extension action api handlers. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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/api/extension_action/extension_actions_api.h "
9 #include "chrome/browser/extensions/extension_function.h"
10
11 namespace extensions {
12
13 class SystemIndicatorSetIconFunction : public ExtensionActionSetIconFunction {
14 public:
15 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.setIcon")
16
17 protected:
18 virtual ~SystemIndicatorSetIconFunction() {}
19 };
20
21 class SystemIndicatorEnableFunction : public ExtensionActionShowFunction {
22 public:
23 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.enable")
24
25 protected:
26 virtual ~SystemIndicatorEnableFunction() {}
27 virtual bool ValidateArguments() OVERRIDE;
28 };
29
30 class SystemIndicatorDisableFunction : public ExtensionActionHideFunction {
31 public:
32 DECLARE_EXTENSION_FUNCTION_NAME("systemIndicator.disable");
33
34 protected:
35 virtual ~SystemIndicatorDisableFunction() {}
36 virtual bool ValidateArguments() OVERRIDE;
37 };
38
39 } // namespace extensions
40
41 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H _
OLDNEW

Powered by Google App Engine