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

Side by Side Diff: content/plugin/webplugin_delegate_stub.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad 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 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/child/npapi/npobject_stub.h"
15 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
17 #include "third_party/npapi/bindings/npapi.h" 16 #include "third_party/npapi/bindings/npapi.h"
18 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
20 #include "url/gurl.h" 19 #include "url/gurl.h"
21 20
22 struct PluginMsg_Init_Params; 21 struct PluginMsg_Init_Params;
23 struct PluginMsg_UpdateGeometry_Param; 22 struct PluginMsg_UpdateGeometry_Param;
24 23
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // renderer over the IPC channel. 59 // renderer over the IPC channel.
61 void OnInit(const PluginMsg_Init_Params& params, 60 void OnInit(const PluginMsg_Init_Params& params,
62 bool* transparent, 61 bool* transparent,
63 bool* result); 62 bool* result);
64 void OnSetFocus(bool focused); 63 void OnSetFocus(bool focused);
65 void OnHandleInputEvent(const blink::WebInputEvent* event, 64 void OnHandleInputEvent(const blink::WebInputEvent* event,
66 bool* handled, WebCursor* cursor); 65 bool* handled, WebCursor* cursor);
67 void OnPaint(const gfx::Rect& damaged_rect); 66 void OnPaint(const gfx::Rect& damaged_rect);
68 void OnDidPaint(); 67 void OnDidPaint();
69 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); 68 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param);
70 void OnGetPluginScriptableObject(int* route_id);
71 void OnGetFormValue(base::string16* value, bool* success); 69 void OnGetFormValue(base::string16* value, bool* success);
72 70
73 void OnSetContentAreaFocus(bool has_focus); 71 void OnSetContentAreaFocus(bool has_focus);
74 #if defined(OS_WIN) && !defined(USE_AURA) 72 #if defined(OS_WIN) && !defined(USE_AURA)
75 void OnImeCompositionUpdated(const base::string16& text, 73 void OnImeCompositionUpdated(const base::string16& text,
76 const std::vector<int>& clauses, 74 const std::vector<int>& clauses,
77 const std::vector<int>& target, 75 const std::vector<int>& target,
78 int cursor_position); 76 int cursor_position);
79 void OnImeCompositionCompleted(const base::string16& text); 77 void OnImeCompositionCompleted(const base::string16& text);
80 #endif 78 #endif
81 #if defined(OS_MACOSX) 79 #if defined(OS_MACOSX)
82 void OnSetWindowFocus(bool has_focus); 80 void OnSetWindowFocus(bool has_focus);
83 void OnContainerHidden(); 81 void OnContainerHidden();
84 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, 82 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame,
85 bool has_focus); 83 bool has_focus);
86 void OnWindowFrameChanged(const gfx::Rect& window_frame, 84 void OnWindowFrameChanged(const gfx::Rect& window_frame,
87 const gfx::Rect& view_frame); 85 const gfx::Rect& view_frame);
88 void OnImeCompositionCompleted(const base::string16& text); 86 void OnImeCompositionCompleted(const base::string16& text);
89 #endif 87 #endif
90 88
91 std::string mime_type_; 89 std::string mime_type_;
92 int instance_id_; 90 int instance_id_;
93 91
94 scoped_refptr<PluginChannel> channel_; 92 scoped_refptr<PluginChannel> channel_;
95 93
96 base::WeakPtr<NPObjectStub> plugin_scriptable_object_;
97 WebPluginDelegateImpl* delegate_; 94 WebPluginDelegateImpl* delegate_;
98 WebPluginProxy* webplugin_; 95 WebPluginProxy* webplugin_;
99 bool in_destructor_; 96 bool in_destructor_;
100 97
101 // The url of the main frame hosting the plugin. 98 // The url of the main frame hosting the plugin.
102 GURL page_url_; 99 GURL page_url_;
103 100
104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); 101 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
105 }; 102 };
106 103
107 } // namespace content 104 } // namespace content
108 105
109 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 106 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698