blob: d743886b96d926724dc7c9d745485d9dc9bf4257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Copyright (c) 2008 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.
#include "config.h"
#include "FrameView.h"
#include "MediaPlayerPrivateChromium.h"
#undef LOG
#include "webkit/glue/webframe_impl.h"
#include "webkit/glue/webmediaplayer_impl.h"
#if ENABLE(VIDEO)
namespace webkit_glue {
WebMediaPlayerImpl::WebMediaPlayerImpl(
WebCore::MediaPlayerPrivate* media_player_private)
: media_player_private_(media_player_private) {
}
WebMediaPlayerImpl::~WebMediaPlayerImpl() {
}
void WebMediaPlayerImpl::Initialize(WebMediaPlayerDelegate* delegate){
delegate_ = delegate;
}
WebFrame* WebMediaPlayerImpl::GetWebFrame() {
if (media_player_private_->frameView()->frame()) {
return WebFrameImpl::FromFrame(
media_player_private_->frameView()->frame());
} else {
return NULL;
}
}
void WebMediaPlayerImpl::NotifynetworkStateChange() {
media_player_private_->networkStateChanged();
}
void WebMediaPlayerImpl::NotifyReadyStateChange() {
media_player_private_->readyStateChanged();
}
void WebMediaPlayerImpl::NotifyTimeChange() {
media_player_private_->timeChanged();
}
void WebMediaPlayerImpl::NotifyVolumeChange() {
media_player_private_->volumeChanged();
}
void WebMediaPlayerImpl::Repaint() {
media_player_private_->repaint();
}
} // namespace webkit_glue
#endif
|