| OLD | NEW |
| 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/glue/plugins/quickdraw_drawing_manager_mac.h" | 7 #include "webkit/plugins/npapi/quickdraw_drawing_manager_mac.h" |
| 8 | 8 |
| 9 #include "webkit/glue/plugins/coregraphics_private_symbols_mac.h" | 9 #include "webkit/plugins/npapi/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 |
| 16 QuickDrawDrawingManager::QuickDrawDrawingManager() | 19 QuickDrawDrawingManager::QuickDrawDrawingManager() |
| 17 : plugin_window_(NULL), target_context_(NULL), fast_path_enabled_(false), | 20 : plugin_window_(NULL), target_context_(NULL), fast_path_enabled_(false), |
| 18 current_port_(NULL), target_world_(NULL), plugin_world_(NULL) {} | 21 current_port_(NULL), target_world_(NULL), plugin_world_(NULL) {} |
| 19 | 22 |
| 20 QuickDrawDrawingManager::~QuickDrawDrawingManager() { | 23 QuickDrawDrawingManager::~QuickDrawDrawingManager() { |
| 21 DestroyGWorlds(); | 24 DestroyGWorlds(); |
| 22 } | 25 } |
| 23 | 26 |
| 24 void QuickDrawDrawingManager::SetFastPathEnabled(bool enabled) { | 27 void QuickDrawDrawingManager::SetFastPathEnabled(bool enabled) { |
| 25 if (fast_path_enabled_ == enabled) | 28 if (fast_path_enabled_ == enabled) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 BackColor(whiteColor); | 147 BackColor(whiteColor); |
| 145 CopyBits(reinterpret_cast<BitMap*>(*source_pixmap), | 148 CopyBits(reinterpret_cast<BitMap*>(*source_pixmap), |
| 146 reinterpret_cast<BitMap*>(*dest_pixmap), | 149 reinterpret_cast<BitMap*>(*dest_pixmap), |
| 147 &window_bounds, &window_bounds, srcCopy, NULL); | 150 &window_bounds, &window_bounds, srcCopy, NULL); |
| 148 UnlockPixels(dest_pixmap); | 151 UnlockPixels(dest_pixmap); |
| 149 } | 152 } |
| 150 UnlockPixels(source_pixmap); | 153 UnlockPixels(source_pixmap); |
| 151 } | 154 } |
| 152 } | 155 } |
| 153 | 156 |
| 157 } // namespace npapi |
| 158 } // namespace webkit |
| 159 |
| 154 #endif // !NP_NO_QUICKDRAW | 160 #endif // !NP_NO_QUICKDRAW |
| OLD | NEW |