| Index: webkit/glue/plugins/pepper_webplugin_impl.cc
|
| diff --git a/webkit/glue/plugins/pepper_webplugin_impl.cc b/webkit/glue/plugins/pepper_webplugin_impl.cc
|
| index 95b3012110d31be089cc1b83b8b9961e217894ec..d56628001b8c1bec9b7528cea0ef1d25301196d9 100644
|
| --- a/webkit/glue/plugins/pepper_webplugin_impl.cc
|
| +++ b/webkit/glue/plugins/pepper_webplugin_impl.cc
|
| @@ -81,7 +81,8 @@ NPObject* WebPluginImpl::scriptableObject() {
|
| }
|
|
|
| void WebPluginImpl::paint(WebCanvas* canvas, const WebRect& rect) {
|
| - instance_->Paint(canvas, plugin_rect_, rect);
|
| + if (!instance_->IsFullscreen())
|
| + instance_->Paint(canvas, plugin_rect_, rect);
|
| }
|
|
|
| void WebPluginImpl::updateGeometry(
|
| @@ -90,7 +91,8 @@ void WebPluginImpl::updateGeometry(
|
| const WebVector<WebRect>& cut_outs_rects,
|
| bool is_visible) {
|
| plugin_rect_ = window_rect;
|
| - instance_->ViewChanged(plugin_rect_, clip_rect);
|
| + if (!instance_->IsFullscreen())
|
| + instance_->ViewChanged(plugin_rect_, clip_rect);
|
| }
|
|
|
| void WebPluginImpl::updateFocus(bool focused) {
|
| @@ -105,6 +107,8 @@ bool WebPluginImpl::acceptsInputEvents() {
|
|
|
| bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event,
|
| WebKit::WebCursorInfo& cursor_info) {
|
| + if (instance_->IsFullscreen())
|
| + return false;
|
| return instance_->HandleInputEvent(event, &cursor_info);
|
| }
|
|
|
|
|