| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | |
| 6 | |
| 7 #include "webkit/common/cursors/webcursor.h" | |
| 8 #include "webkit/plugins/npapi/plugin_instance.h" | |
| 9 | |
| 10 using WebKit::WebInputEvent; | |
| 11 | |
| 12 namespace webkit { | |
| 13 namespace npapi { | |
| 14 | |
| 15 WebPluginDelegateImpl::WebPluginDelegateImpl(PluginInstance* instance) { | |
| 16 } | |
| 17 | |
| 18 WebPluginDelegateImpl::~WebPluginDelegateImpl() { | |
| 19 } | |
| 20 | |
| 21 bool WebPluginDelegateImpl::PlatformInitialize() { | |
| 22 return true; | |
| 23 } | |
| 24 | |
| 25 void WebPluginDelegateImpl::PlatformDestroyInstance() { | |
| 26 // Nothing to do here. | |
| 27 } | |
| 28 | |
| 29 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, | |
| 30 const gfx::Rect& rect) { | |
| 31 } | |
| 32 | |
| 33 bool WebPluginDelegateImpl::WindowedCreatePlugin() { | |
| 34 return true; | |
| 35 } | |
| 36 | |
| 37 void WebPluginDelegateImpl::WindowedDestroyWindow() { | |
| 38 } | |
| 39 | |
| 40 bool WebPluginDelegateImpl::WindowedReposition( | |
| 41 const gfx::Rect& window_rect, | |
| 42 const gfx::Rect& clip_rect) { | |
| 43 return true; | |
| 44 } | |
| 45 | |
| 46 void WebPluginDelegateImpl::WindowedSetWindow() { | |
| 47 } | |
| 48 | |
| 49 void WebPluginDelegateImpl::WindowlessUpdateGeometry( | |
| 50 const gfx::Rect& window_rect, | |
| 51 const gfx::Rect& clip_rect) { | |
| 52 } | |
| 53 | |
| 54 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, | |
| 55 const gfx::Rect& damage_rect) { | |
| 56 } | |
| 57 | |
| 58 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { | |
| 59 return true; | |
| 60 } | |
| 61 | |
| 62 bool WebPluginDelegateImpl::PlatformHandleInputEvent( | |
| 63 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { | |
| 64 return false; | |
| 65 } | |
| 66 | |
| 67 } // namespace npapi | |
| 68 } // namespace webkit | |
| OLD | NEW |