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

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl.h

Issue 165344: Add an UpdateContext call to WebPluginDelegateImpl on the Mac. (Closed)
Patch Set: Stripped down to Mac-only Created 11 years, 4 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 | « chrome/plugin/webplugin_proxy.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 intptr_t notify_data, 81 intptr_t notify_data,
82 intptr_t stream); 82 intptr_t stream);
83 83
84 virtual void URLRequestRouted(const std::string&url, bool notify_needed, 84 virtual void URLRequestRouted(const std::string&url, bool notify_needed,
85 intptr_t notify_data); 85 intptr_t notify_data);
86 virtual bool IsWindowless() const { return windowless_ ; } 86 virtual bool IsWindowless() const { return windowless_ ; }
87 virtual const gfx::Rect& GetRect() const { return window_rect_; } 87 virtual const gfx::Rect& GetRect() const { return window_rect_; }
88 virtual const gfx::Rect& GetClipRect() const { return clip_rect_; } 88 virtual const gfx::Rect& GetClipRect() const { return clip_rect_; }
89 virtual int GetQuirks() const { return quirks_; } 89 virtual int GetQuirks() const { return quirks_; }
90 90
91 #if defined(OS_MACOSX)
92 // Informs the delegate that the context used for painting windowless plugins
93 // has changed.
94 virtual void UpdateContext(gfx::NativeDrawingContext context);
95 #endif
96
91 private: 97 private:
92 friend class DeleteTask<WebPluginDelegateImpl>; 98 friend class DeleteTask<WebPluginDelegateImpl>;
93 99
94 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view, 100 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view,
95 NPAPI::PluginInstance *instance); 101 NPAPI::PluginInstance *instance);
96 ~WebPluginDelegateImpl(); 102 ~WebPluginDelegateImpl();
97 103
98 #if !defined(OS_MACOSX) 104 #if !defined(OS_MACOSX)
99 //-------------------------- 105 //--------------------------
100 // used for windowed plugins 106 // used for windowed plugins
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 294
289 // Holds the current cursor set by the windowless plugin. 295 // Holds the current cursor set by the windowless plugin.
290 WebCursor current_windowless_cursor_; 296 WebCursor current_windowless_cursor_;
291 297
292 friend class WebPluginDelegate; 298 friend class WebPluginDelegate;
293 299
294 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); 300 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl);
295 }; 301 };
296 302
297 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 303 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698