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

Side by Side Diff: chrome/browser/policy/proto/chromeos/chrome_device_policy.proto

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct example in policy_templates.json. Created 7 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package enterprise_management; 9 package enterprise_management;
10 10
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // enable or disable the screen magnifier anytime and its status on the login 407 // enable or disable the screen magnifier anytime and its status on the login
408 // screen is persisted between users. 408 // screen is persisted between users.
409 optional ScreenMagnifierType login_screen_default_screen_magnifier_type = 4; 409 optional ScreenMagnifierType login_screen_default_screen_magnifier_type = 4;
410 } 410 }
411 411
412 message SupervisedUsersSettingsProto { 412 message SupervisedUsersSettingsProto {
413 // Defines whether supervised users can be created on the device. 413 // Defines whether supervised users can be created on the device.
414 optional bool supervised_users_enabled = 1; 414 optional bool supervised_users_enabled = 1;
415 } 415 }
416 416
417 message LoginScreenPowerManagementProto {
418 // Configures power management on the login screen. The policy should be
419 // specified as a string that expresses the individual settings in JSON
420 // format, conforming to the following schema:
421 // {
422 // "type": "object",
423 // "properties": {
424 // "AC": {
425 // "description": "Power management settings applicable only when
426 // running on AC power",
427 // "type": "object",
428 // "properties": {
429 // "Delays": {
430 // "type": "object",
431 // "properties": {
432 // "ScreenDim": {
433 // "description": "The length of time without user input after
434 // which the screen is dimmed, in milliseconds",
435 // "type": "integer",
436 // "minimum": 0
437 // },
438 // "ScreenOff": {
439 // "description": "The length of time without user input after
440 // which the screen is turned off, in
441 // milliseconds",
442 // "type": "integer",
443 // "minimum": 0
444 // },
445 // "Idle": {
446 // "description": "The length of time without user input after
447 // which the idle action is taken, in
448 // milliseconds",
449 // "type": "integer",
450 // "minimum": 0
451 // }
452 // }
453 // },
454 // "IdleAction": {
455 // "description": "Action to take when the idle delay is reached",
456 // "enum": [ "Suspend", "Shutdown", "DoNothing" ]
457 // }
458 // }
459 // },
460 // "Battery": {
461 // "description": "Power management settings applicable only when
462 // running on battery power",
463 // "type": "object",
464 // "properties": {
465 // "Delays": {
466 // "type": "object",
467 // "properties": {
468 // "ScreenDim": {
469 // "description": "The length of time without user input after
470 // which the screen is dimmed, in milliseconds",
471 // "type": "integer",
472 // "minimum": 0
473 // },
474 // "ScreenOff": {
475 // "description": "The length of time without user input after
476 // which the screen is turned off, in
477 // milliseconds",
478 // "type": "integer",
479 // "minimum": 0
480 // },
481 // "Idle": {
482 // "description": "The length of time without user input after
483 // which the idle action is taken, in
484 // milliseconds",
485 // "type": "integer",
486 // "minimum": 0
487 // }
488 // }
489 // },
490 // "IdleAction": {
491 // "description": "Action to take when the idle delay is reached",
492 // "enum": [ "Suspend", "Shutdown", "DoNothing" ]
493 // }
494 // }
495 // },
496 // "LidCloseAction": {
497 // "description": "Action to take when the lid is closed",
498 // "enum": [ "Suspend", "Shutdown", "DoNothing" ]
499 // },
500 // "UserActivityScreenDimDelayScale": {
501 // "description": "Percentage by which the screen dim delay is scaled
502 // when user activity is observed while the screen is
503 // dimmed or soon after the screen has been turned off",
504 // "type": "integer",
505 // "minimum": 0
506 // }
507 // }
508 // }
509 optional string login_screen_power_management = 1;
510 }
511
417 message ChromeDeviceSettingsProto { 512 message ChromeDeviceSettingsProto {
418 optional DevicePolicyRefreshRateProto device_policy_refresh_rate = 1; 513 optional DevicePolicyRefreshRateProto device_policy_refresh_rate = 1;
419 optional UserWhitelistProto user_whitelist = 2; 514 optional UserWhitelistProto user_whitelist = 2;
420 optional GuestModeEnabledProto guest_mode_enabled = 3; 515 optional GuestModeEnabledProto guest_mode_enabled = 3;
421 optional DeviceProxySettingsProto device_proxy_settings = 4; 516 optional DeviceProxySettingsProto device_proxy_settings = 4;
422 optional CameraEnabledProto camera_enabled = 5; 517 optional CameraEnabledProto camera_enabled = 5;
423 optional ShowUserNamesOnSigninProto show_user_names = 6; 518 optional ShowUserNamesOnSigninProto show_user_names = 6;
424 optional DataRoamingEnabledProto data_roaming_enabled = 7; 519 optional DataRoamingEnabledProto data_roaming_enabled = 7;
425 optional AllowNewUsersProto allow_new_users = 8; 520 optional AllowNewUsersProto allow_new_users = 8;
426 optional MetricsEnabledProto metrics_enabled = 9; 521 optional MetricsEnabledProto metrics_enabled = 9;
427 optional ReleaseChannelProto release_channel = 10; 522 optional ReleaseChannelProto release_channel = 10;
428 optional DeviceOpenNetworkConfigurationProto open_network_configuration = 11; 523 optional DeviceOpenNetworkConfigurationProto open_network_configuration = 11;
429 optional DeviceReportingProto device_reporting = 12; 524 optional DeviceReportingProto device_reporting = 12;
430 optional EphemeralUsersEnabledProto ephemeral_users_enabled = 13; 525 optional EphemeralUsersEnabledProto ephemeral_users_enabled = 13;
431 optional AppPackProto app_pack = 14; 526 optional AppPackProto app_pack = 14;
432 optional ForcedLogoutTimeoutsProto forced_logout_timeouts = 15; 527 optional ForcedLogoutTimeoutsProto forced_logout_timeouts = 15;
433 optional ScreenSaverProto login_screen_saver = 16; 528 optional ScreenSaverProto login_screen_saver = 16;
434 optional AutoUpdateSettingsProto auto_update_settings = 17; 529 optional AutoUpdateSettingsProto auto_update_settings = 17;
435 optional StartUpUrlsProto start_up_urls = 18; 530 optional StartUpUrlsProto start_up_urls = 18;
436 optional PinnedAppsProto pinned_apps = 19; 531 optional PinnedAppsProto pinned_apps = 19;
437 optional SystemTimezoneProto system_timezone = 20; 532 optional SystemTimezoneProto system_timezone = 20;
438 optional DeviceLocalAccountsProto device_local_accounts = 21; 533 optional DeviceLocalAccountsProto device_local_accounts = 21;
439 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22; 534 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22;
440 optional StartUpFlagsProto start_up_flags = 23; 535 optional StartUpFlagsProto start_up_flags = 23;
441 optional UptimeLimitProto uptime_limit = 24; 536 optional UptimeLimitProto uptime_limit = 24;
442 optional VariationsParameterProto variations_parameter = 25; 537 optional VariationsParameterProto variations_parameter = 25;
443 optional AttestationSettingsProto attestation_settings = 26; 538 optional AttestationSettingsProto attestation_settings = 26;
444 optional AccessibilitySettingsProto accessibility_settings = 27; 539 optional AccessibilitySettingsProto accessibility_settings = 27;
445 optional SupervisedUsersSettingsProto supervised_users_settings = 28; 540 optional SupervisedUsersSettingsProto supervised_users_settings = 28;
541 optional LoginScreenPowerManagementProto login_screen_power_management = 29;
446 } 542 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698