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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl_android.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) 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 "webkit/plugins/npapi/webplugin_delegate_impl.h"
6
7 #include "base/basictypes.h"
8 #include "base/logging.h"
9 #include "webkit/common/cursors/webcursor.h"
10 #include "webkit/plugins/npapi/plugin_instance.h"
11 #include "webkit/plugins/npapi/webplugin.h"
12
13 using WebKit::WebInputEvent;
14
15 namespace webkit {
16 namespace npapi {
17
18 WebPluginDelegateImpl::WebPluginDelegateImpl(
19 PluginInstance* instance)
20 : windowed_handle_(0),
21 windowed_did_set_window_(false),
22 windowless_(false),
23 plugin_(NULL),
24 instance_(instance),
25 quirks_(0),
26 handle_event_depth_(0),
27 first_set_window_call_(true) {
28 memset(&window_, 0, sizeof(window_));
29 }
30
31 WebPluginDelegateImpl::~WebPluginDelegateImpl() {
32 }
33
34 bool WebPluginDelegateImpl::PlatformInitialize() {
35 return true;
36 }
37
38 void WebPluginDelegateImpl::PlatformDestroyInstance() {
39 // Nothing to do here.
40 }
41
42 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas,
43 const gfx::Rect& rect) {
44 }
45
46 bool WebPluginDelegateImpl::WindowedCreatePlugin() {
47 return false;
48 }
49
50 void WebPluginDelegateImpl::WindowedDestroyWindow() {
51 }
52
53 bool WebPluginDelegateImpl::WindowedReposition(
54 const gfx::Rect& window_rect,
55 const gfx::Rect& clip_rect) {
56 return false;
57 }
58
59 void WebPluginDelegateImpl::WindowedSetWindow() {
60 }
61
62 void WebPluginDelegateImpl::WindowlessUpdateGeometry(
63 const gfx::Rect& window_rect,
64 const gfx::Rect& clip_rect) {
65 }
66
67 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
68 const gfx::Rect& damage_rect) {
69 }
70
71 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
72 return false;
73 }
74
75 bool WebPluginDelegateImpl::PlatformHandleInputEvent(
76 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) {
77 return false;
78 }
79
80 } // namespace npapi
81 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698