| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" | 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "third_party/ppapi/c/pp_var.h" | 8 #include "third_party/ppapi/c/pp_var.h" |
| 9 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebPluginParams.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const WebRect& window_rect, | 89 const WebRect& window_rect, |
| 90 const WebRect& clip_rect, | 90 const WebRect& clip_rect, |
| 91 const WebVector<WebRect>& cut_outs_rects, | 91 const WebVector<WebRect>& cut_outs_rects, |
| 92 bool is_visible) { | 92 bool is_visible) { |
| 93 plugin_rect_ = window_rect; | 93 plugin_rect_ = window_rect; |
| 94 if (!instance_->IsFullscreen()) | 94 if (!instance_->IsFullscreen()) |
| 95 instance_->ViewChanged(plugin_rect_, clip_rect); | 95 instance_->ViewChanged(plugin_rect_, clip_rect); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void WebPluginImpl::updateFocus(bool focused) { | 98 void WebPluginImpl::updateFocus(bool focused) { |
| 99 instance_->FocusChanged(focused); |
| 99 } | 100 } |
| 100 | 101 |
| 101 void WebPluginImpl::updateVisibility(bool visible) { | 102 void WebPluginImpl::updateVisibility(bool visible) { |
| 102 } | 103 } |
| 103 | 104 |
| 104 bool WebPluginImpl::acceptsInputEvents() { | 105 bool WebPluginImpl::acceptsInputEvents() { |
| 105 return true; | 106 return true; |
| 106 } | 107 } |
| 107 | 108 |
| 108 bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event, | 109 bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool WebPluginImpl::printPage(int page_number, | 195 bool WebPluginImpl::printPage(int page_number, |
| 195 WebKit::WebCanvas* canvas) { | 196 WebKit::WebCanvas* canvas) { |
| 196 return instance_->PrintPage(page_number, canvas); | 197 return instance_->PrintPage(page_number, canvas); |
| 197 } | 198 } |
| 198 | 199 |
| 199 void WebPluginImpl::printEnd() { | 200 void WebPluginImpl::printEnd() { |
| 200 return instance_->PrintEnd(); | 201 return instance_->PrintEnd(); |
| 201 } | 202 } |
| 202 | 203 |
| 203 } // namespace pepper | 204 } // namespace pepper |
| OLD | NEW |