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

Side by Side Diff: content/child/npapi/webplugin.h

Issue 1825253002: Revert of 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: 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/child/npapi/plugin_instance.cc ('k') | content/child/npapi/webplugin_delegate_impl.h » ('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_CHILD_NPAPI_WEBPLUGIN_H_ 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Cancels document load. 60 // Cancels document load.
61 virtual void CancelDocumentLoad() = 0; 61 virtual void CancelDocumentLoad() = 0;
62 62
63 virtual void DidStartLoading() = 0; 63 virtual void DidStartLoading() = 0;
64 virtual void DidStopLoading() = 0; 64 virtual void DidStopLoading() = 0;
65 65
66 // Returns true iff in incognito mode. 66 // Returns true iff in incognito mode.
67 virtual bool IsOffTheRecord() = 0; 67 virtual bool IsOffTheRecord() = 0;
68 68
69 #if defined(OS_WIN)
70 // |pump_messages_event| is a event handle which is used in NPP_HandleEvent
71 // calls to pump messages if the plugin enters a modal loop.
72 // |dummy_activation_window} is used to ensure correct keyboard activation.
73 // It needs to be a child of the parent window.
74 virtual void SetWindowlessData(HANDLE pump_messages_event,
75 gfx::NativeViewId dummy_activation_window) = 0;
76 #endif
77
69 #if defined(OS_MACOSX) 78 #if defined(OS_MACOSX)
70 // Called to inform the WebPlugin that the plugin has gained or lost focus. 79 // Called to inform the WebPlugin that the plugin has gained or lost focus.
71 virtual void FocusChanged(bool focused) {} 80 virtual void FocusChanged(bool focused) {}
72 81
73 // Starts plugin IME. 82 // Starts plugin IME.
74 virtual void StartIme() {} 83 virtual void StartIme() {}
75 84
76 // Returns the accelerated surface abstraction for accelerated plugins. 85 // Returns the accelerated surface abstraction for accelerated plugins.
77 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface( 86 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface(
78 gfx::GpuPreference gpu_preference) = 0; 87 gfx::GpuPreference gpu_preference) = 0;
79 88
80 // Core Animation plugin support. CA plugins always render through 89 // Core Animation plugin support. CA plugins always render through
81 // the compositor. 90 // the compositor.
82 virtual void AcceleratedPluginEnabledRendering() = 0; 91 virtual void AcceleratedPluginEnabledRendering() = 0;
83 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width, 92 virtual void AcceleratedPluginAllocatedIOSurface(int32_t width,
84 int32_t height, 93 int32_t height,
85 uint32_t surface_id) = 0; 94 uint32_t surface_id) = 0;
86 virtual void AcceleratedPluginSwappedIOSurface() = 0; 95 virtual void AcceleratedPluginSwappedIOSurface() = 0;
87 #endif 96 #endif
88 }; 97 };
89 98
90 } // namespace content 99 } // namespace content
91 100
92 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_ 101 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_instance.cc ('k') | content/child/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698