Index: Source/core/page/PageLifecycleObserver.h |
diff --git a/Source/core/rendering/RenderMediaControls.h b/Source/core/page/PageLifecycleObserver.h |
similarity index 77% |
copy from Source/core/rendering/RenderMediaControls.h |
copy to Source/core/page/PageLifecycleObserver.h |
index d1b3f87be7805b5d0a3344a0e2edd07afb389da3..b7eeeeb606f7b2650db24bdee0b7267f4d73626c 100644 |
--- a/Source/core/rendering/RenderMediaControls.h |
+++ b/Source/core/page/PageLifecycleObserver.h |
@@ -1,5 +1,6 @@ |
+ |
/* |
- * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
+ * Copyright (C) 2013 Google Inc. All Rights Reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -20,29 +21,26 @@ |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef RenderMediaControls_h |
-#define RenderMediaControls_h |
+#ifndef PageLifecycleObserver_h |
+#define PageLifecycleObserver_h |
-#include "core/html/shadow/MediaControlElements.h" |
+#include "core/dom/LifecycleObserver.h" |
namespace WebCore { |
-struct PaintInfo; |
- |
-class HTMLMediaElement; |
-class IntRect; |
-class IntSize; |
-class RenderBox; |
-class RenderObject; |
-class RenderStyle; |
+class Page; |
-class RenderMediaControls { |
+class PageLifecycleObserver : public LifecycleObserver { |
abarth-chromium
2013/07/09 18:27:52
Can this class provide a page() function that retu
Michael van Ouwerkerk
2013/07/10 13:25:09
Done.
|
public: |
+ explicit PageLifecycleObserver(Page*); |
+ virtual ~PageLifecycleObserver(); |
+ |
+ virtual void pageVisibilityChanged() { } |
}; |
} // namespace WebCore |
-#endif // RenderMediaControls_h |
+#endif // PageLifecycleObserver_h |