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

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

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 NP_NO_QUICKDRAW 5 #ifndef NP_NO_QUICKDRAW
6 6
7 #include "webkit/plugins/npapi/quickdraw_drawing_manager_mac.h" 7 #include "webkit/glue/plugins/quickdraw_drawing_manager_mac.h"
8 8
9 #include "webkit/plugins/npapi/coregraphics_private_symbols_mac.h" 9 #include "webkit/glue/plugins/coregraphics_private_symbols_mac.h"
10 10
11 // Turn off GCC warnings about deprecated functions (since QuickDraw is a 11 // Turn off GCC warnings about deprecated functions (since QuickDraw is a
12 // deprecated API). According to the GCC documentation, this can only be done 12 // deprecated API). According to the GCC documentation, this can only be done
13 // per file, not pushed and popped like some options can be. 13 // per file, not pushed and popped like some options can be.
14 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 14 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
15 15
16 namespace webkit {
17 namespace npapi {
18
19 QuickDrawDrawingManager::QuickDrawDrawingManager() 16 QuickDrawDrawingManager::QuickDrawDrawingManager()
20 : plugin_window_(NULL), target_context_(NULL), fast_path_enabled_(false), 17 : plugin_window_(NULL), target_context_(NULL), fast_path_enabled_(false),
21 current_port_(NULL), target_world_(NULL), plugin_world_(NULL) {} 18 current_port_(NULL), target_world_(NULL), plugin_world_(NULL) {}
22 19
23 QuickDrawDrawingManager::~QuickDrawDrawingManager() { 20 QuickDrawDrawingManager::~QuickDrawDrawingManager() {
24 DestroyGWorlds(); 21 DestroyGWorlds();
25 } 22 }
26 23
27 void QuickDrawDrawingManager::SetFastPathEnabled(bool enabled) { 24 void QuickDrawDrawingManager::SetFastPathEnabled(bool enabled) {
28 if (fast_path_enabled_ == enabled) 25 if (fast_path_enabled_ == enabled)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 BackColor(whiteColor); 144 BackColor(whiteColor);
148 CopyBits(reinterpret_cast<BitMap*>(*source_pixmap), 145 CopyBits(reinterpret_cast<BitMap*>(*source_pixmap),
149 reinterpret_cast<BitMap*>(*dest_pixmap), 146 reinterpret_cast<BitMap*>(*dest_pixmap),
150 &window_bounds, &window_bounds, srcCopy, NULL); 147 &window_bounds, &window_bounds, srcCopy, NULL);
151 UnlockPixels(dest_pixmap); 148 UnlockPixels(dest_pixmap);
152 } 149 }
153 UnlockPixels(source_pixmap); 150 UnlockPixels(source_pixmap);
154 } 151 }
155 } 152 }
156 153
157 } // namespace npapi
158 } // namespace webkit
159
160 #endif // !NP_NO_QUICKDRAW 154 #endif // !NP_NO_QUICKDRAW
OLDNEW
« no previous file with comments | « webkit/glue/plugins/quickdraw_drawing_manager_mac.h ('k') | webkit/glue/plugins/test/Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698