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

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: Nit addressed. 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // enable or disable the screen magnifier anytime and its status on the login 406 // enable or disable the screen magnifier anytime and its status on the login
407 // screen is persisted between users. 407 // screen is persisted between users.
408 optional ScreenMagnifierType login_screen_default_screen_magnifier_type = 4; 408 optional ScreenMagnifierType login_screen_default_screen_magnifier_type = 4;
409 } 409 }
410 410
411 message SupervisedUsersSettingsProto { 411 message SupervisedUsersSettingsProto {
412 // Defines whether supervised users can be created on the device. 412 // Defines whether supervised users can be created on the device.
413 optional bool supervised_users_enabled = 1; 413 optional bool supervised_users_enabled = 1;
414 } 414 }
415 415
416 message PowerManagementProto {
Mattias Nissler (ping if slow) 2013/07/03 16:52:18 Ah, so adding this big proto just to remove it sho
bartfab (slow) 2013/07/03 19:11:04 I will see how much effort it is to add a Configur
417 // Specifies the length of time without user activity after which the screen
418 // is dimmed when the login screen is being shown and the device is running on
419 // AC power. When this policy is set to zero, the screen is never dimmed. When
420 // this policy is unset, a default length of time is used. The policy value
421 // should be specified in milliseconds. Values are clamped to be less than or
422 // equal the screen off delay (if set) and the idle delay.
423 optional int64 login_screen_screen_dim_delay_ac = 1;
424
425 // Specifies the length of time without user activity after which the screen
426 // is turned off when the login screen is being shown and the device is
427 // running on AC power. When this policy is set to zero, the screen is never
428 // turned off. When this policy is unset, a default length of time is used.
429 // The policy value should be specified in milliseconds. Values are clamped to
430 // be less than or equal the idle delay.
431 optional int64 login_screen_screen_off_delay_ac = 2;
432
433 // Specifies the length of time without user activity after which the idle
434 // action is taken when the login screen is being shown and the device is
435 // running on AC power. When this policy is unset, a default length of time is
436 // used. The policy value should be specified in milliseconds.
437 optional int64 login_screen_idle_delay_ac = 3;
438
439 // Specifies the length of time without user activity after which the screen
440 // is dimmed when the login screen is being shown and the device is running on
441 // battery power. When this policy is set to zero, the screen is never dimmed.
442 // When this policy is unset, a default length of time is used. The policy
443 // value should be specified in milliseconds. Values are clamped to be less
444 // than or equal the screen off delay (if set) and the idle delay.
445 optional int64 login_screen_screen_dim_delay_battery = 4;
446
447 // Specifies the length of time without user activity after which the screen
448 // is turned off when the login screen is being shown and the device is
449 // running on battery power. When this policy is set to zero, the screen is
450 // never turned off. When this policy is unset, a default length of time is
451 // used. The policy value should be specified in milliseconds. Values are
452 // clamped to be less than or equal the idle delay.
453 optional int64 login_screen_screen_off_delay_battery = 5;
454
455 // Specifies the length of time without user activity after which the idle
456 // action is taken when the login screen is being shown and the device is
457 // running on battery power. When this policy is unset, a default length of
458 // time is used. The policy value should be specified in milliseconds.
459 optional int64 login_screen_idle_delay_battery = 6;
460
461 // Enumerates the power management actions possible on the login screen.
462 enum PowerManagementAction {
463 // Suspend the device.
464 ACTION_SUSPEND = 0;
465 // Shut down the device.
466 ACTION_SHUT_DOWN = 2;
467 // Do nothing.
468 ACTION_DO_NOTHING = 3;
469 };
470
471 // Specifies the action to take when the idle delay is reached while the login
472 // screen is being shown and the device is running on AC power. When this
473 // policy is unset, the default action is taken, which is suspend.
474 optional PowerManagementAction login_screen_idle_action_ac = 7;
475
476 // Specifies the action to take when the idle delay is reached while the login
477 // screen is being shown and the device is running on battery power. When this
478 // policy is unset, the default action is taken, which is shut down.
479 optional PowerManagementAction login_screen_idle_action_battery = 8;
480
481 // Specifies the action to take when the user closes the lid while the login
482 // screen is being shown. When this policy is unset, the default action is
483 // taken, which is shut down.
484 optional PowerManagementAction login_screen_lid_close_action = 9;
485
486 // Specifies the percentage by which the screen dim delay is scaled when user
487 // activity is observed while the screen is dimmed or soon after the screen
488 // has been turned off while the login screen is being shown. If this policy
489 // is unset, a default scale factor is used. The policy value is specified in
490 // percent and must be at least 100.
491 optional int64 login_screen_user_activity_screen_dim_delay_scale = 10;
492 }
493
416 message ChromeDeviceSettingsProto { 494 message ChromeDeviceSettingsProto {
417 optional DevicePolicyRefreshRateProto device_policy_refresh_rate = 1; 495 optional DevicePolicyRefreshRateProto device_policy_refresh_rate = 1;
418 optional UserWhitelistProto user_whitelist = 2; 496 optional UserWhitelistProto user_whitelist = 2;
419 optional GuestModeEnabledProto guest_mode_enabled = 3; 497 optional GuestModeEnabledProto guest_mode_enabled = 3;
420 optional DeviceProxySettingsProto device_proxy_settings = 4; 498 optional DeviceProxySettingsProto device_proxy_settings = 4;
421 optional CameraEnabledProto camera_enabled = 5; 499 optional CameraEnabledProto camera_enabled = 5;
422 optional ShowUserNamesOnSigninProto show_user_names = 6; 500 optional ShowUserNamesOnSigninProto show_user_names = 6;
423 optional DataRoamingEnabledProto data_roaming_enabled = 7; 501 optional DataRoamingEnabledProto data_roaming_enabled = 7;
424 optional AllowNewUsersProto allow_new_users = 8; 502 optional AllowNewUsersProto allow_new_users = 8;
425 optional MetricsEnabledProto metrics_enabled = 9; 503 optional MetricsEnabledProto metrics_enabled = 9;
426 optional ReleaseChannelProto release_channel = 10; 504 optional ReleaseChannelProto release_channel = 10;
427 optional DeviceOpenNetworkConfigurationProto open_network_configuration = 11; 505 optional DeviceOpenNetworkConfigurationProto open_network_configuration = 11;
428 optional DeviceReportingProto device_reporting = 12; 506 optional DeviceReportingProto device_reporting = 12;
429 optional EphemeralUsersEnabledProto ephemeral_users_enabled = 13; 507 optional EphemeralUsersEnabledProto ephemeral_users_enabled = 13;
430 optional AppPackProto app_pack = 14; 508 optional AppPackProto app_pack = 14;
431 optional ForcedLogoutTimeoutsProto forced_logout_timeouts = 15; 509 optional ForcedLogoutTimeoutsProto forced_logout_timeouts = 15;
432 optional ScreenSaverProto login_screen_saver = 16; 510 optional ScreenSaverProto login_screen_saver = 16;
433 optional AutoUpdateSettingsProto auto_update_settings = 17; 511 optional AutoUpdateSettingsProto auto_update_settings = 17;
434 optional StartUpUrlsProto start_up_urls = 18; 512 optional StartUpUrlsProto start_up_urls = 18;
435 optional PinnedAppsProto pinned_apps = 19; 513 optional PinnedAppsProto pinned_apps = 19;
436 optional SystemTimezoneProto system_timezone = 20; 514 optional SystemTimezoneProto system_timezone = 20;
437 optional DeviceLocalAccountsProto device_local_accounts = 21; 515 optional DeviceLocalAccountsProto device_local_accounts = 21;
438 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22; 516 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22;
439 optional StartUpFlagsProto start_up_flags = 23; 517 optional StartUpFlagsProto start_up_flags = 23;
440 optional UptimeLimitProto uptime_limit = 24; 518 optional UptimeLimitProto uptime_limit = 24;
441 optional VariationsParameterProto variations_parameter = 25; 519 optional VariationsParameterProto variations_parameter = 25;
442 optional AttestationSettingsProto attestation_settings = 26; 520 optional AttestationSettingsProto attestation_settings = 26;
443 optional AccessibilitySettingsProto accessibility_settings = 27; 521 optional AccessibilitySettingsProto accessibility_settings = 27;
444 optional SupervisedUsersSettingsProto supervised_users_settings = 28; 522 optional SupervisedUsersSettingsProto supervised_users_settings = 28;
523 optional PowerManagementProto power_management = 29;
445 } 524 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698