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

Unified Diff: Source/core/page/PageLifecycleObserver.h

Issue 18777003: Extract simpler classes for observing context lifecycle and observe Page lifecycle inNavigatorVibra… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ensure m_scriptExecutionContext is maintained and not just null. Created 7 years, 5 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: 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

Powered by Google App Engine
This is Rietveld 408576698