Chromium Code Reviews| OLD | NEW |
|---|---|
| (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__ | |
|
jianli
2012/11/12 23:00:55
nit: only one trailing underscore is needed.
dewittj
2012/11/13 06:58:54
Fixed
| |
| 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 SystemIndicatorSetURLFunction : public SyncExtensionFunction { | |
| 13 public: | |
| 14 SystemIndicatorSetURLFunction(); | |
| 15 DECLARE_EXTENSION_FUNCTION_NAME("experimental.systemIndicator.setURL") | |
| 16 | |
| 17 protected: | |
| 18 virtual ~SystemIndicatorSetURLFunction() {} | |
| 19 | |
| 20 virtual bool RunImpl() OVERRIDE; | |
| 21 }; | |
| 22 | |
| 23 class SystemIndicatorSetImageDataFunction : public SyncExtensionFunction { | |
| 24 public: | |
| 25 SystemIndicatorSetImageDataFunction(); | |
| 26 DECLARE_EXTENSION_FUNCTION_NAME("experimental.systemIndicator.setImageData") | |
| 27 | |
| 28 protected: | |
| 29 virtual ~SystemIndicatorSetImageDataFunction() {} | |
| 30 | |
| 31 virtual bool RunImpl() OVERRIDE; | |
| 32 }; | |
| 33 | |
| 34 class SystemIndicatorShowFunction : public SyncExtensionFunction { | |
| 35 public: | |
| 36 SystemIndicatorShowFunction(); | |
| 37 DECLARE_EXTENSION_FUNCTION_NAME("experimental.systemIndicator.show") | |
| 38 | |
| 39 protected: | |
| 40 virtual ~SystemIndicatorShowFunction() {} | |
| 41 | |
| 42 virtual bool RunImpl() OVERRIDE; | |
| 43 }; | |
| 44 | |
| 45 class SystemIndicatorHideFunction : public SyncExtensionFunction { | |
| 46 public: | |
| 47 SystemIndicatorHideFunction(); | |
| 48 DECLARE_EXTENSION_FUNCTION_NAME("experimental.systemIndicator.hide"); | |
| 49 | |
| 50 protected: | |
| 51 virtual ~SystemIndicatorHideFunction() {} | |
| 52 | |
| 53 virtual bool RunImpl() OVERRIDE; | |
| 54 private: | |
|
jianli
2012/11/12 23:00:55
nit: not needed
dewittj
2012/11/13 06:58:54
Fixed
| |
| 55 }; | |
| 56 | |
| 57 } // namespace extensions | |
| 58 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H __ | |
|
jianli
2012/11/12 23:00:55
nit: empty line before this line.
jianli
2012/11/12 23:00:55
nit: inconsistent naming in the comment
dewittj
2012/11/13 06:58:54
Fixed
dewittj
2012/11/13 06:58:54
Fixed
| |
| OLD | NEW |