| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 "content/child/npapi/webplugin_delegate_impl.h" | |
| 6 | |
| 7 #include <string.h> | |
| 8 | |
| 9 #include "base/logging.h" | |
| 10 #include "content/child/npapi/plugin_instance.h" | |
| 11 #include "content/child/npapi/webplugin.h" | |
| 12 #include "content/common/cursors/webcursor.h" | |
| 13 | |
| 14 using blink::WebInputEvent; | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 WebPluginDelegateImpl::WebPluginDelegateImpl( | |
| 19 WebPlugin* plugin, | |
| 20 PluginInstance* instance) | |
| 21 : plugin_(plugin), | |
| 22 instance_(instance), | |
| 23 quirks_(0), | |
| 24 handle_event_depth_(0), | |
| 25 first_set_window_call_(true) { | |
| 26 memset(&window_, 0, sizeof(window_)); | |
| 27 } | |
| 28 | |
| 29 WebPluginDelegateImpl::~WebPluginDelegateImpl() { | |
| 30 } | |
| 31 | |
| 32 bool WebPluginDelegateImpl::PlatformInitialize() { | |
| 33 return true; | |
| 34 } | |
| 35 | |
| 36 void WebPluginDelegateImpl::PlatformDestroyInstance() { | |
| 37 // Nothing to do here. | |
| 38 } | |
| 39 | |
| 40 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { | |
| 41 } | |
| 42 | |
| 43 void WebPluginDelegateImpl::WindowlessUpdateGeometry( | |
| 44 const gfx::Rect& window_rect, | |
| 45 const gfx::Rect& clip_rect) { | |
| 46 } | |
| 47 | |
| 48 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, | |
| 49 const gfx::Rect& damage_rect) { | |
| 50 } | |
| 51 | |
| 52 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { | |
| 53 return false; | |
| 54 } | |
| 55 | |
| 56 bool WebPluginDelegateImpl::PlatformHandleInputEvent( | |
| 57 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { | |
| 58 return false; | |
| 59 } | |
| 60 | |
| 61 } // content | |
| OLD | NEW |