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

Side by Side Diff: chrome/browser/extensions/api/system_display/system_display_api.cc

Issue 23604068: Add "kiosk_only" manifest attribute for platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update documentation. Created 7 years, 2 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/system_display/system_display_api.h" 5 #include "chrome/browser/extensions/api/system_display/system_display_api.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/common/extensions/manifest_handlers/kiosk_enabled_info.h" 8 #include "chrome/common/extensions/manifest_handlers/kiosk_mode_info.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 using api::system_display::DisplayUnitInfo; 12 using api::system_display::DisplayUnitInfo;
13 13
14 namespace SetDisplayProperties = api::system_display::SetDisplayProperties; 14 namespace SetDisplayProperties = api::system_display::SetDisplayProperties;
15 15
16 bool SystemDisplayGetInfoFunction::RunImpl() { 16 bool SystemDisplayGetInfoFunction::RunImpl() {
17 DisplayInfoProvider::Get()->RequestInfo( 17 DisplayInfoProvider::Get()->RequestInfo(
18 base::Bind( 18 base::Bind(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 void SystemDisplaySetDisplayPropertiesFunction::OnPropertiesSet( 55 void SystemDisplaySetDisplayPropertiesFunction::OnPropertiesSet(
56 bool success, const std::string& error) { 56 bool success, const std::string& error) {
57 if (!success) 57 if (!success)
58 SetError(error); 58 SetError(error);
59 SendResponse(success); 59 SendResponse(success);
60 } 60 }
61 61
62 } // namespace extensions 62 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698