1 // Copyright 2020 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 #ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_BATTERY_SAVINGS_H_ 6 #define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_BATTERY_SAVINGS_H_ 7 8 namespace blink { 9 10 // These are constants for the various keywords allowed for the battery-savings 11 // meta element. For instance: 12 // 13 // <meta name="battery-savings" content="allow-reduced-framerate"> 14 // 15 // These constants are bits which can be combined. 16 enum WebBatterySavings { 17 kAllowReducedFrameRate = 1 << 0, 18 kAllowReducedScriptSpeed = 1 << 1, 19 }; 20 21 using WebBatterySavingsFlags = unsigned; 22 23 } // namespace blink 24 25 #endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_BATTERY_SAVINGS_H_ 26