OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MediaKeysController_h |
| 6 #define MediaKeysController_h |
| 7 |
| 8 #include "core/page/Page.h" |
| 9 #include "wtf/PassOwnPtr.h" |
| 10 |
| 11 namespace WebCore { |
| 12 |
| 13 class MediaKeysClient; |
| 14 |
| 15 class MediaKeysController FINAL : public Supplement<Page> { |
| 16 public: |
| 17 virtual ~MediaKeysController(); |
| 18 MediaKeysClient* client() const { return m_client; } |
| 19 |
| 20 static PassOwnPtr<MediaKeysController> create(MediaKeysClient*); |
| 21 static const char* supplementName(); |
| 22 static MediaKeysController* from(Page* page) { return static_cast<MediaKeysC
ontroller*>(Supplement<Page>::from(page, supplementName())); } |
| 23 |
| 24 protected: |
| 25 explicit MediaKeysController(MediaKeysClient*); |
| 26 |
| 27 private: |
| 28 MediaKeysClient* m_client; |
| 29 }; |
| 30 |
| 31 } // namespace WebCore |
| 32 |
| 33 #endif // MediaKeysController_h |
| 34 |
OLD | NEW |