Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl_aura.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698