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

Unified Diff: content/browser/power_save_blocker_impl.h

Issue 1041823004: Remove java ViewAndroid class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: java PowerSaveBlocker Created 5 years, 8 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/browser/power_save_blocker_impl.h
diff --git a/content/browser/power_save_blocker_impl.h b/content/browser/power_save_blocker_impl.h
index 7ba0b5429b858439b57705abc41ae6fecb32fa1f..a30422646fe05e971866c6160a4ee26fda96f051 100644
--- a/content/browser/power_save_blocker_impl.h
+++ b/content/browser/power_save_blocker_impl.h
@@ -9,10 +9,11 @@
#include "base/memory/ref_counted.h"
#include "content/public/browser/power_save_blocker.h"
-#include "ui/gfx/native_widget_types.h"
namespace content {
+class WebContents;
+
class PowerSaveBlockerImpl : public PowerSaveBlocker {
public:
PowerSaveBlockerImpl(PowerSaveBlockerType type,
@@ -22,9 +23,9 @@ class PowerSaveBlockerImpl : public PowerSaveBlocker {
#if defined(OS_ANDROID)
// In Android platform, the kPowerSaveBlockPreventDisplaySleep type of
- // PowerSaveBlocker should associated with the ViewAndroid,
- // so the blocker could be removed by platform if the view isn't visble
- void InitDisplaySleepBlocker(gfx::NativeView view_android);
+ // PowerSaveBlocker should associated with a WebContents, so the blocker
+ // could be removed by platform if the WebContents is hidden.
+ void InitDisplaySleepBlocker(WebContents* web_contents);
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698