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

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: Same as before but exempted systemIndicator from permission message, TODO. 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
7 #include "chrome/browser/extensions/extension_system.h"
8 #include "chrome/common/extensions/api/system_indicator.h"
9
10 namespace extensions {
11
12 SystemIndicatorSetIconFunction::SystemIndicatorSetIconFunction() {}
13
14 namespace indicator = api::system_indicator;
15
16 bool SystemIndicatorSetIconFunction::RunImpl() {
17 scoped_ptr<indicator::SetIcon::Params> params(
18 indicator::SetIcon::Params::Create(*args_));
19
20 EXTENSION_FUNCTION_VALIDATE(params.get());
21 return true;
22 }
23
24 SystemIndicatorEnableFunction::SystemIndicatorEnableFunction() {}
25
26 bool SystemIndicatorEnableFunction::RunImpl() {
27 return true;
28 }
29
30 SystemIndicatorDisableFunction::SystemIndicatorDisableFunction() {}
31
32 bool SystemIndicatorDisableFunction::RunImpl() {
33 return true;
34 }
35
36 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698