Chromium Code Reviews| Index: ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h |
| diff --git a/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h b/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d79acbf1d3d6f7e376974d79d7da955f7178627d |
| --- /dev/null |
| +++ b/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 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. |
| + |
| +#ifndef UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_ |
| +#define UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_ |
| + |
| +#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h" |
| + |
| +@class CALayer; |
| + |
| +namespace ui { |
| + |
| +class ACCELERATED_WIDGET_MAC_EXPORT FullscreenLowPowerCoordinator { |
| + public: |
| + // This is called whenever the AcceleratedWidgetMac gets a frame, and |
| + // indicates to the FullscreenLowPowerCoordinator whether or not the low power |
| + // layer has valid content for this frame. |
| + virtual void SetLowPowerLayerValid(bool valid) = 0; |
| + |
| + // This is to be called if the AcceleratedWidget is going to be deactivated |
| + // or destroyed. In this call, the coordinator will call back into the |
|
erikchen
2016/05/05 17:47:38
s/will/must/?
ccameron
2016/05/05 19:27:18
Done.
|
| + // AccleratedWidgetMac to reset its FullscreenLowPowerCoordinator. |
| + virtual void WillLoseAcceleratedWidget() = 0; |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_ |