| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 "content/child/npapi/webplugin_delegate_impl.h" | 5 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include "content/child/npapi/plugin_instance.h" | 7 #include "content/child/npapi/plugin_instance.h" |
| 8 #include "content/common/cursors/webcursor.h" | 8 #include "content/common/cursors/webcursor.h" |
| 9 | 9 |
| 10 using blink::WebInputEvent; | 10 using blink::WebInputEvent; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 return true; | 22 return true; |
| 23 } | 23 } |
| 24 | 24 |
| 25 void WebPluginDelegateImpl::PlatformDestroyInstance() { | 25 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
| 26 // Nothing to do here. | 26 // Nothing to do here. |
| 27 } | 27 } |
| 28 | 28 |
| 29 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { | 29 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool WebPluginDelegateImpl::WindowedCreatePlugin() { | |
| 33 return true; | |
| 34 } | |
| 35 | |
| 36 void WebPluginDelegateImpl::WindowedDestroyWindow() { | |
| 37 } | |
| 38 | |
| 39 bool WebPluginDelegateImpl::WindowedReposition( | |
| 40 const gfx::Rect& window_rect, | |
| 41 const gfx::Rect& clip_rect) { | |
| 42 return true; | |
| 43 } | |
| 44 | |
| 45 void WebPluginDelegateImpl::WindowedSetWindow() { | |
| 46 } | |
| 47 | |
| 48 void WebPluginDelegateImpl::WindowlessUpdateGeometry( | 32 void WebPluginDelegateImpl::WindowlessUpdateGeometry( |
| 49 const gfx::Rect& window_rect, | 33 const gfx::Rect& window_rect, |
| 50 const gfx::Rect& clip_rect) { | 34 const gfx::Rect& clip_rect) { |
| 51 } | 35 } |
| 52 | 36 |
| 53 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, | 37 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, |
| 54 const gfx::Rect& damage_rect) { | 38 const gfx::Rect& damage_rect) { |
| 55 } | 39 } |
| 56 | 40 |
| 57 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { | 41 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { |
| 58 return true; | 42 return true; |
| 59 } | 43 } |
| 60 | 44 |
| 61 bool WebPluginDelegateImpl::PlatformHandleInputEvent( | 45 bool WebPluginDelegateImpl::PlatformHandleInputEvent( |
| 62 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { | 46 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { |
| 63 return false; | 47 return false; |
| 64 } | 48 } |
| 65 | 49 |
| 66 } // namespace content | 50 } // namespace content |
| OLD | NEW |