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

Unified Diff: webkit/plugins/npapi/webplugin_delegate_impl.h

Issue 10928072: Remove all support for the Carbon NPAPI event model (Closed) Base URL: http://git.chromium.org/chromium/src.git@test-plugin-cocoa
Patch Set: Rebase Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/npapi/webplugin_delegate_impl.h
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl.h b/webkit/plugins/npapi/webplugin_delegate_impl.h
index 3a35703f9faa68290c530c7b1cc7357fabdbe15c..2a176e78f8d3d4761eb00f80179aaec8a572a236 100644
--- a/webkit/plugins/npapi/webplugin_delegate_impl.h
+++ b/webkit/plugins/npapi/webplugin_delegate_impl.h
@@ -176,8 +176,6 @@ class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate {
static WebPluginDelegateImpl* GetActiveDelegate();
// Informs the plugin that the window it is in has gained or lost focus.
void SetWindowHasFocus(bool has_focus);
- // Returns whether or not the window the plugin is in has focus.
- bool GetWindowHasFocus() const { return containing_window_has_focus_; }
// Informs the plugin that its tab or window has been hidden or shown.
void SetContainerVisibility(bool is_visible);
// Informs the plugin that its containing window's frame has changed.
@@ -200,17 +198,10 @@ class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate {
// context instead of a buffer context.
void SetNoBufferContext();
-#ifndef NP_NO_CARBON
- // Indicates that it's time to send the plugin a null event.
- void FireIdleEvent();
-#endif
-
// TODO(caryclark): This is a temporary workaround to allow the Darwin / Skia
// port to share code with the Darwin / CG port. Later, this will be removed
// and all callers will use the Paint defined above.
void CGPaint(CGContextRef context, const gfx::Rect& rect);
-
- bool AllowBufferFlipping();
#endif // OS_MACOSX && !USE_AURA
gfx::PluginWindowHandle windowed_handle() const {
@@ -452,22 +443,9 @@ class WEBKIT_PLUGINS_EXPORT WebPluginDelegateImpl : public WebPluginDelegate {
// Uses a CARenderer to draw the plug-in's layer in our OpenGL surface.
void DrawLayerInSurface();
-#ifndef NP_NO_CARBON
- // Moves our dummy window to match the current screen location of the plugin.
- void UpdateDummyWindowBounds(const gfx::Point& plugin_origin);
-
- // Adjusts the idle event rate for a Carbon plugin based on its current
- // visibility.
- void UpdateIdleEventRate();
-#endif // !NP_NO_CARBON
-
bool use_buffer_context_;
CGContextRef buffer_context_; // Weak ref.
-#ifndef NP_NO_CARBON
- NP_CGContext np_cg_context_;
-#endif
-
CALayer* layer_; // Used for CA drawing mode. Weak, retained by plug-in.
WebPluginAcceleratedSurface* surface_; // Weak ref.
bool composited_; // If CA plugin, whether it's rendering via compositor.
« no previous file with comments | « webkit/plugins/npapi/plugin_web_event_converter_mac.mm ('k') | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698