OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
jam
2014/04/04 01:01:24
why does this file exist? are you using plugins? i
lcwu1
2014/04/05 01:17:13
No, we don't use plugin. I think we encounter some
jam
2014/04/07 17:32:01
I see, ok please fix the enable_plugins=0 case the
| |
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 "base/basictypes.h" | |
8 #include "base/logging.h" | |
7 #include "content/child/npapi/plugin_instance.h" | 9 #include "content/child/npapi/plugin_instance.h" |
10 #include "content/child/npapi/webplugin.h" | |
8 #include "content/common/cursors/webcursor.h" | 11 #include "content/common/cursors/webcursor.h" |
9 | 12 |
10 using blink::WebInputEvent; | 13 using blink::WebInputEvent; |
11 | 14 |
12 namespace content { | 15 namespace content { |
13 | 16 |
14 WebPluginDelegateImpl::WebPluginDelegateImpl(WebPlugin* plugin, | 17 WebPluginDelegateImpl::WebPluginDelegateImpl(WebPlugin* plugin, |
15 PluginInstance* instance) { | 18 PluginInstance* instance) { |
16 } | 19 } |
17 | 20 |
18 WebPluginDelegateImpl::~WebPluginDelegateImpl() { | 21 WebPluginDelegateImpl::~WebPluginDelegateImpl() { |
19 } | 22 } |
20 | 23 |
21 bool WebPluginDelegateImpl::PlatformInitialize() { | 24 bool WebPluginDelegateImpl::PlatformInitialize() { |
22 return true; | 25 return true; |
23 } | 26 } |
24 | 27 |
25 void WebPluginDelegateImpl::PlatformDestroyInstance() { | 28 void WebPluginDelegateImpl::PlatformDestroyInstance() { |
26 // Nothing to do here. | 29 // Nothing to do here. |
27 } | 30 } |
28 | 31 |
29 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { | 32 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, |
33 const gfx::Rect& rect) { | |
30 } | 34 } |
31 | 35 |
32 bool WebPluginDelegateImpl::WindowedCreatePlugin() { | 36 bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
33 return true; | 37 return false; |
34 } | 38 } |
35 | 39 |
36 void WebPluginDelegateImpl::WindowedDestroyWindow() { | 40 void WebPluginDelegateImpl::WindowedDestroyWindow() { |
37 } | 41 } |
38 | 42 |
39 bool WebPluginDelegateImpl::WindowedReposition( | 43 bool WebPluginDelegateImpl::WindowedReposition( |
40 const gfx::Rect& window_rect, | 44 const gfx::Rect& window_rect, |
41 const gfx::Rect& clip_rect) { | 45 const gfx::Rect& clip_rect) { |
42 return true; | 46 return false; |
43 } | 47 } |
44 | 48 |
45 void WebPluginDelegateImpl::WindowedSetWindow() { | 49 void WebPluginDelegateImpl::WindowedSetWindow() { |
46 } | 50 } |
47 | 51 |
48 void WebPluginDelegateImpl::WindowlessUpdateGeometry( | 52 void WebPluginDelegateImpl::WindowlessUpdateGeometry( |
49 const gfx::Rect& window_rect, | 53 const gfx::Rect& window_rect, |
50 const gfx::Rect& clip_rect) { | 54 const gfx::Rect& clip_rect) { |
51 } | 55 } |
52 | 56 |
53 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, | 57 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, |
54 const gfx::Rect& damage_rect) { | 58 const gfx::Rect& damage_rect) { |
55 } | 59 } |
56 | 60 |
57 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { | 61 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { |
58 return true; | 62 return false; |
59 } | 63 } |
60 | 64 |
61 bool WebPluginDelegateImpl::PlatformHandleInputEvent( | 65 bool WebPluginDelegateImpl::PlatformHandleInputEvent( |
62 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { | 66 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { |
63 return false; | 67 return false; |
64 } | 68 } |
65 | 69 |
66 } // namespace content | 70 } // namespace content |
OLD | NEW |