| Index: Source/core/page/PageLifecycleObserver.h
|
| diff --git a/Source/core/rendering/RenderMediaControls.h b/Source/core/page/PageLifecycleObserver.h
|
| similarity index 76%
|
| copy from Source/core/rendering/RenderMediaControls.h
|
| copy to Source/core/page/PageLifecycleObserver.h
|
| index d1b3f87be7805b5d0a3344a0e2edd07afb389da3..76424f63b3d9c49177df067e5c10f8d874cc8506 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/SimpleLifecycleObserver.h"
|
|
|
| namespace WebCore {
|
|
|
| -struct PaintInfo;
|
| -
|
| -class HTMLMediaElement;
|
| -class IntRect;
|
| -class IntSize;
|
| -class RenderBox;
|
| -class RenderObject;
|
| -class RenderStyle;
|
| +class Page;
|
|
|
| -class RenderMediaControls {
|
| +class PageLifecycleObserver : public SimpleLifecycleObserver {
|
| public:
|
| + explicit PageLifecycleObserver(Page*);
|
| + virtual ~PageLifecycleObserver();
|
| +
|
| + virtual void pageVisibilityChanged() { }
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // RenderMediaControls_h
|
| +#endif // PageLifecycleObserver_h
|
|
|