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

Side by Side Diff: content/child/npapi/webplugin_delegate_impl_android.cc

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 <string.h> 7 #include <string.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/child/npapi/plugin_instance.h" 10 #include "content/child/npapi/plugin_instance.h"
11 #include "content/child/npapi/webplugin.h" 11 #include "content/child/npapi/webplugin.h"
12 #include "content/common/cursors/webcursor.h" 12 #include "content/common/cursors/webcursor.h"
13 13
14 using blink::WebInputEvent; 14 using blink::WebInputEvent;
15 15
16 namespace content { 16 namespace content {
17 17
18 WebPluginDelegateImpl::WebPluginDelegateImpl( 18 WebPluginDelegateImpl::WebPluginDelegateImpl(
19 WebPlugin* plugin, 19 WebPlugin* plugin,
20 PluginInstance* instance) 20 PluginInstance* instance)
21 : windowed_handle_(0), 21 : plugin_(plugin),
22 windowed_did_set_window_(false),
23 windowless_(false),
24 plugin_(plugin),
25 instance_(instance), 22 instance_(instance),
26 quirks_(0), 23 quirks_(0),
27 handle_event_depth_(0), 24 handle_event_depth_(0),
28 first_set_window_call_(true) { 25 first_set_window_call_(true) {
29 memset(&window_, 0, sizeof(window_)); 26 memset(&window_, 0, sizeof(window_));
30 } 27 }
31 28
32 WebPluginDelegateImpl::~WebPluginDelegateImpl() { 29 WebPluginDelegateImpl::~WebPluginDelegateImpl() {
33 } 30 }
34 31
35 bool WebPluginDelegateImpl::PlatformInitialize() { 32 bool WebPluginDelegateImpl::PlatformInitialize() {
36 return true; 33 return true;
37 } 34 }
38 35
39 void WebPluginDelegateImpl::PlatformDestroyInstance() { 36 void WebPluginDelegateImpl::PlatformDestroyInstance() {
40 // Nothing to do here. 37 // Nothing to do here.
41 } 38 }
42 39
43 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) { 40 void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) {
44 } 41 }
45 42
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( 43 void WebPluginDelegateImpl::WindowlessUpdateGeometry(
63 const gfx::Rect& window_rect, 44 const gfx::Rect& window_rect,
64 const gfx::Rect& clip_rect) { 45 const gfx::Rect& clip_rect) {
65 } 46 }
66 47
67 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context, 48 void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
68 const gfx::Rect& damage_rect) { 49 const gfx::Rect& damage_rect) {
69 } 50 }
70 51
71 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) { 52 bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
72 return false; 53 return false;
73 } 54 }
74 55
75 bool WebPluginDelegateImpl::PlatformHandleInputEvent( 56 bool WebPluginDelegateImpl::PlatformHandleInputEvent(
76 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) { 57 const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) {
77 return false; 58 return false;
78 } 59 }
79 60
80 } // content 61 } // content
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.cc ('k') | content/child/npapi/webplugin_delegate_impl_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698