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 3 // found in the LICENSE file. 4 5 package org.chromium.content.browser; 6 7 import org.chromium.base.CalledByNative; 8 import org.chromium.ui.base.ViewAndroid; 9 10 class PowerSaveBlocker { 11 @CalledByNative applyBlock(ViewAndroid view)12 private static void applyBlock(ViewAndroid view) { 13 view.incrementKeepScreenOnCount(); 14 } 15 16 @CalledByNative removeBlock(ViewAndroid view)17 private static void removeBlock(ViewAndroid view) { 18 view.decrementKeepScreenOnCount(); 19 } 20 } 21