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

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

Issue 11361189: Initial skeleton for System Indicator API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Up similarity requirement 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 #include "chrome/browser/extensions/api/system_indicator/system_indicator_api.h"
6 #include "chrome/browser/extensions/extension_system.h"
7 #include "chrome/common/extensions/api/experimental_system_indicator.h"
8
jianli 2012/11/12 23:00:55 nit: extra empty line not needed
dewittj 2012/11/13 06:58:54 Fixed
9
10 class ExtensionService;
11 namespace extensions {
jianli 2012/11/12 23:00:55 nit: empty line before this line
dewittj 2012/11/13 06:58:54 Fixed
12
13 SystemIndicatorSetURLFunction::SystemIndicatorSetURLFunction() {}
14
15 bool SystemIndicatorSetURLFunction::RunImpl() {
16 scoped_ptr<api::experimental_system_indicator::SetURL::Params> params(
17 api::experimental_system_indicator::SetURL::Params::Create(*args_));
18 EXTENSION_FUNCTION_VALIDATE(params.get());
19
20 return true;
jianli 2012/11/12 23:00:55 nit: space alignment
dewittj 2012/11/13 06:58:54 Fixed
21 }
22
23 SystemIndicatorSetImageDataFunction::SystemIndicatorSetImageDataFunction() {}
24
25 bool SystemIndicatorSetImageDataFunction::RunImpl() {
26 scoped_ptr<api::experimental_system_indicator::SetImageData::Params> params(
27 api::experimental_system_indicator::SetImageData::Params::Create(*args_));
28 EXTENSION_FUNCTION_VALIDATE(params.get());
29 return true;
30 }
31
32 SystemIndicatorShowFunction::SystemIndicatorShowFunction() {}
33
34 bool SystemIndicatorShowFunction::RunImpl() {
35 return true;
36 }
37
38 SystemIndicatorHideFunction::SystemIndicatorHideFunction() {}
39
40 bool SystemIndicatorHideFunction::RunImpl() {
41 return true;
42 }
43
44 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698