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

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: use ViewAndroid 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
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..aa44198174a3ff354e0a8a8dd6194523d8b3209c 100644
--- a/content/browser/power_save_blocker_impl.h
+++ b/content/browser/power_save_blocker_impl.h
@@ -11,17 +11,18 @@
namespace content {
+class WebContents;
joth 2013/08/08 21:48:57 not needed now
michaelbai 2013/08/09 17:46:51 Done.
+
class PowerSaveBlockerImpl : public PowerSaveBlocker {
public:
PowerSaveBlockerImpl(PowerSaveBlockerType type, const std::string& reason);
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:

Powered by Google App Engine
This is Rietveld 408576698