Chromium Code Reviews| 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: |