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

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

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
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_PLUGINS_NPAPI_QUICKDRAW_DRAWING_MANAGER_MAC_H_ 5 #ifndef WEBKIT_GLUE_QUICKDRAW_DRAWING_MANAGER_MAC_H_
6 #define WEBKIT_PLUGINS_NPAPI_QUICKDRAW_DRAWING_MANAGER_MAC_H_ 6 #define WEBKIT_GLUE_QUICKDRAW_DRAWING_MANAGER_MAC_H_
7 7
8 #ifndef NP_NO_QUICKDRAW 8 #ifndef NP_NO_QUICKDRAW
9 9
10 #import <Carbon/Carbon.h> 10 #import <Carbon/Carbon.h>
11 11
12 #include "gfx/rect.h" 12 #include "gfx/rect.h"
13 13
14 namespace webkit {
15 namespace npapi {
16
17 // Plugin helper class encapsulating the details of capturing what a QuickDraw 14 // Plugin helper class encapsulating the details of capturing what a QuickDraw
18 // drawing model plugin draws, then drawing it into a CGContext. 15 // drawing model plugin draws, then drawing it into a CGContext.
19 class QuickDrawDrawingManager { 16 class QuickDrawDrawingManager {
20 public: 17 public:
21 QuickDrawDrawingManager(); 18 QuickDrawDrawingManager();
22 ~QuickDrawDrawingManager(); 19 ~QuickDrawDrawingManager();
23 20
24 // Sets the mode used for plugin drawing. If enabled is true the plugin draws 21 // Sets the mode used for plugin drawing. If enabled is true the plugin draws
25 // into a GWorld that's not connected to a window, otherwise the plugin draws 22 // into a GWorld that's not connected to a window, otherwise the plugin draws
26 // into our the plugin's dummy window (which is slower, since the call we use 23 // into our the plugin's dummy window (which is slower, since the call we use
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 WindowRef plugin_window_; // Weak reference. 71 WindowRef plugin_window_; // Weak reference.
75 CGContextRef target_context_; // Weak reference. 72 CGContextRef target_context_; // Weak reference.
76 gfx::Size plugin_size_; 73 gfx::Size plugin_size_;
77 bool fast_path_enabled_; 74 bool fast_path_enabled_;
78 CGrafPtr current_port_; 75 CGrafPtr current_port_;
79 // Variables used for the faster path: 76 // Variables used for the faster path:
80 GWorldPtr target_world_; // Created lazily; may be NULL. 77 GWorldPtr target_world_; // Created lazily; may be NULL.
81 GWorldPtr plugin_world_; // Created lazily; may be NULL. 78 GWorldPtr plugin_world_; // Created lazily; may be NULL.
82 }; 79 };
83 80
84 } // namespace npapi
85 } // namespace webkit
86
87 #endif // !NP_NO_QUICKDRAW 81 #endif // !NP_NO_QUICKDRAW
88 82
89 #endif // WEBKIT_PLUGINS_NPAPI_QUICKDRAW_DRAWING_MANAGER_MAC_H_ 83 #endif // QUICKDRAW_DRAWING_MANAGER_MAC
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_web_event_converter_mac.mm ('k') | webkit/glue/plugins/quickdraw_drawing_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698