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

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

Issue 1745018: Clean up initial CA layer setup for Mac Plugins (Closed)
Patch Set: Tweak initialization order a bit more Created 10 years, 8 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 | « no previous file | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #endif 173 #endif
174 #endif // OS_MACOSX 174 #endif // OS_MACOSX
175 175
176 gfx::PluginWindowHandle windowed_handle() const { 176 gfx::PluginWindowHandle windowed_handle() const {
177 return windowed_handle_; 177 return windowed_handle_;
178 } 178 }
179 179
180 #if defined(OS_MACOSX) 180 #if defined(OS_MACOSX)
181 // Allow setting a "fake" window handle to associate this plug-in with 181 // Allow setting a "fake" window handle to associate this plug-in with
182 // an IOSurface in the browser. Used for accelerated drawing surfaces. 182 // an IOSurface in the browser. Used for accelerated drawing surfaces.
183 void set_windowed_handle(gfx::PluginWindowHandle handle) { 183 void set_windowed_handle(gfx::PluginWindowHandle handle);
184 windowed_handle_ = handle;
185 UpdateAcceleratedSurface();
186 }
187 #endif 184 #endif
188 185
189 private: 186 private:
190 friend class DeleteTask<WebPluginDelegateImpl>; 187 friend class DeleteTask<WebPluginDelegateImpl>;
191 friend class webkit_glue::WebPluginDelegate; 188 friend class webkit_glue::WebPluginDelegate;
192 189
193 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view, 190 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view,
194 NPAPI::PluginInstance *instance); 191 NPAPI::PluginInstance *instance);
195 ~WebPluginDelegateImpl(); 192 ~WebPluginDelegateImpl();
196 193
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // Holds the depth of the HandleEvent callstack. 461 // Holds the depth of the HandleEvent callstack.
465 int handle_event_depth_; 462 int handle_event_depth_;
466 463
467 // Holds the current cursor set by the windowless plugin. 464 // Holds the current cursor set by the windowless plugin.
468 WebCursor current_windowless_cursor_; 465 WebCursor current_windowless_cursor_;
469 466
470 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); 467 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl);
471 }; 468 };
472 469
473 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 470 #endif // WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698