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 "base/basictypes.h" |
| 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" |
| 10 #include "base/process_util.h" |
| 11 #include "base/metrics/stats_counters.h" |
| 12 #include "base/string_util.h" |
| 13 #include "skia/ext/platform_canvas.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 16 #include "ui/gfx/blit.h" |
| 17 #include "webkit/plugins/npapi/gtk_plugin_container.h" |
| 18 #include "webkit/plugins/npapi/plugin_constants_win.h" |
| 19 #include "webkit/plugins/npapi/plugin_instance.h" |
| 20 #include "webkit/plugins/npapi/plugin_lib.h" |
| 21 #include "webkit/plugins/npapi/plugin_list.h" |
| 22 #include "webkit/plugins/npapi/plugin_stream_url.h" |
| 23 #include "webkit/plugins/npapi/webplugin.h" |
| 24 |
| 25 #include "third_party/npapi/bindings/npapi_x11.h" |
| 26 |
| 27 using WebKit::WebCursorInfo; |
| 28 using WebKit::WebKeyboardEvent; |
| 29 using WebKit::WebInputEvent; |
| 30 using WebKit::WebMouseEvent; |
| 31 |
| 32 namespace webkit { |
| 33 namespace npapi { |
| 34 |
| 35 WebPluginDelegateImpl::WebPluginDelegateImpl( |
| 36 gfx::PluginWindowHandle containing_view, |
| 37 PluginInstance *instance) { |
| 38 } |
| 39 |
| 40 WebPluginDelegateImpl::~WebPluginDelegateImpl() { |
| 41 } |
| 42 |
| 43 bool WebPluginDelegateImpl::PlatformInitialize() { |
| 44 return true; |
| 45 } |
| 46 |
| 47 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
| 48 // Nothing to do here. |
| 49 } |
| 50 |
| 51 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, |
| 52 const gfx::Rect& rect) { |
| 53 } |
| 54 |
| 55 bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
| 56 return true; |
| 57 } |
| 58 |
| 59 void WebPluginDelegateImpl::WindowedDestroyWindow() { |
| 60 } |
| 61 |
| 62 bool WebPluginDelegateImpl::WindowedReposition( |
| 63 const gfx::Rect& window_rect, |
| 64 const gfx::Rect& clip_rect) { |
| 65 return true; |
| 66 } |
| 67 |
| 68 void WebPluginDelegateImpl::WindowedSetWindow() { |
| 69 } |
| 70 |
| 71 void WebPluginDelegateImpl::WindowlessUpdateGeometry( |
| 72 const gfx::Rect& window_rect, |
| 73 const gfx::Rect& clip_rect) { |
| 74 } |
| 75 |
| 76 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, |
| 77 const gfx::Rect& damage_rect) { |
| 78 } |
| 79 |
| 80 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { |
| 81 return true; |
| 82 } |
| 83 |
| 84 bool WebPluginDelegateImpl::PlatformHandleInputEvent( |
| 85 const WebInputEvent& event, WebCursorInfo* cursor_info) { |
| 86 return false; |
| 87 } |
| 88 |
| 89 } // namespace npapi |
| 90 } // namespace webkit |
OLD | NEW |