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

Unified Diff: content/browser/power_save_blocker_impl.h

Issue 20125004: Use ContentViewCore's container view to keep screen on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 7 years, 4 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
« no previous file with comments | « content/browser/power_save_blocker_android.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c3a105d42488261de08e047ccdc413407f246979..948aced4cb45151f98f942411f7a0f79af305ba2 100644
--- a/content/browser/power_save_blocker_impl.h
+++ b/content/browser/power_save_blocker_impl.h
@@ -17,11 +17,10 @@ class PowerSaveBlockerImpl : public PowerSaveBlocker {
virtual ~PowerSaveBlockerImpl();
#if defined(OS_ANDROID)
- // In Android platform, the |native_window| is needed to create the
- // kPowerSaveBlockPreventDisplaySleep type of PowerSaveBlocker
- // so the blocker could be removed by platform if the window isn't in the
- // foreground.
- void InitDisplaySleepBlocker(gfx::NativeWindow native_window);
+ // 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);
#endif
private:
« no previous file with comments | « content/browser/power_save_blocker_android.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698