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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java

Issue 1041823004: Remove java ViewAndroid class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ViewAndroid Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java b/content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java
deleted file mode 100644
index 3c561c3c49030d3a1b1d39fd8e754ecf5791318e..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/PowerSaveBlocker.java
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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) {
Ted C 2015/04/06 20:56:11 I honestly would prefer this class remain and all
boliu 2015/04/06 21:04:06 Sounds fine. Will do.
boliu 2015/04/06 22:47:00 Oh, now I remember why I didn't do this.. Current
boliu 2015/04/06 22:50:20 Could totally do one anchor view per PowerSaveBloc
- view.incrementKeepScreenOnCount();
- }
-
- @CalledByNative
- private static void removeBlock(ViewAndroid view) {
- view.decrementKeepScreenOnCount();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698