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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 1813143002: Remove a bunch of NPAPI quirks and related support code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_windowed_plugins
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
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 PepperPluginInstanceImpl* focused_pepper_plugin() { 251 PepperPluginInstanceImpl* focused_pepper_plugin() {
252 return focused_pepper_plugin_; 252 return focused_pepper_plugin_;
253 } 253 }
254 PepperPluginInstanceImpl* pepper_last_mouse_event_target() { 254 PepperPluginInstanceImpl* pepper_last_mouse_event_target() {
255 return pepper_last_mouse_event_target_; 255 return pepper_last_mouse_event_target_;
256 } 256 }
257 void set_pepper_last_mouse_event_target(PepperPluginInstanceImpl* plugin) { 257 void set_pepper_last_mouse_event_target(PepperPluginInstanceImpl* plugin) {
258 pepper_last_mouse_event_target_ = plugin; 258 pepper_last_mouse_event_target_ = plugin;
259 } 259 }
260 260
261 #if defined(OS_MACOSX) || defined(OS_WIN) 261 #if defined(OS_MACOSX)
262 // Informs the render view that the given plugin has gained or lost focus. 262 // Informs the render view that the given plugin has gained or lost focus.
263 void PluginFocusChanged(bool focused, int plugin_id); 263 void PluginFocusChanged(bool focused, int plugin_id);
264 #endif
265 264
266 #if defined(OS_MACOSX)
267 // Starts plugin IME. 265 // Starts plugin IME.
268 void StartPluginIme(); 266 void StartPluginIme();
269 #endif 267 #endif
270 268
271 // Indicates that the given instance has been created. 269 // Indicates that the given instance has been created.
272 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); 270 void PepperInstanceCreated(PepperPluginInstanceImpl* instance);
273 271
274 // Indicates that the given instance is being destroyed. This is called from 272 // Indicates that the given instance is being destroyed. This is called from
275 // the destructor, so it's important that the instance is not dereferenced 273 // the destructor, so it's important that the instance is not dereferenced
276 // from this call. 274 // from this call.
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; 933 scoped_ptr<RendererDateTimePicker> date_time_picker_client_;
936 #endif 934 #endif
937 935
938 // Plugins ------------------------------------------------------------------- 936 // Plugins -------------------------------------------------------------------
939 937
940 // All the currently active plugin delegates for this RenderView; kept so 938 // All the currently active plugin delegates for this RenderView; kept so
941 // that we can enumerate them to send updates about things like window 939 // that we can enumerate them to send updates about things like window
942 // location or tab focus and visibily. These are non-owning references. 940 // location or tab focus and visibily. These are non-owning references.
943 std::set<WebPluginDelegateProxy*> plugin_delegates_; 941 std::set<WebPluginDelegateProxy*> plugin_delegates_;
944 942
945 #if defined(OS_WIN)
946 // The ID of the focused NPAPI plugin.
947 int focused_plugin_id_;
948 #endif
949
950 #if defined(ENABLE_PLUGINS) 943 #if defined(ENABLE_PLUGINS)
951 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet; 944 typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet;
952 PepperPluginSet active_pepper_instances_; 945 PepperPluginSet active_pepper_instances_;
953 946
954 // TODO(jam): these belong on RenderFrame, once the browser knows which frame 947 // TODO(jam): these belong on RenderFrame, once the browser knows which frame
955 // is focused and sends the IPCs which use these to the correct frame. Until 948 // is focused and sends the IPCs which use these to the correct frame. Until
956 // then, we must store these on RenderView as that's the one place that knows 949 // then, we must store these on RenderView as that's the one place that knows
957 // about all the RenderFrames for a page. 950 // about all the RenderFrames for a page.
958 951
959 // Whether or not the focus is on a PPAPI plugin 952 // Whether or not the focus is on a PPAPI plugin
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 // use the Observer interface to filter IPC messages and receive frame change 1008 // use the Observer interface to filter IPC messages and receive frame change
1016 // notifications. 1009 // notifications.
1017 // --------------------------------------------------------------------------- 1010 // ---------------------------------------------------------------------------
1018 1011
1019 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1012 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1020 }; 1013 };
1021 1014
1022 } // namespace content 1015 } // namespace content
1023 1016
1024 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1017 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698