root/content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. applyBlock
  2. removeBlock

// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.content.browser;

import org.chromium.base.CalledByNative;
import org.chromium.ui.base.ViewAndroid;

class PowerSaveBlocker {
    @CalledByNative
    private static void applyBlock(ViewAndroid view) {
        view.incrementKeepScreenOnCount();
    }

    @CalledByNative
    private static void removeBlock(ViewAndroid view) {
        view.decrementKeepScreenOnCount();
    }
}

/* [<][>][^][v][top][bottom][index][help] */