| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 5 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 g_iat_patch_reg_enum_key_ex_w.Pointer()->Unpatch(); | 649 g_iat_patch_reg_enum_key_ex_w.Pointer()->Unpatch(); |
| 650 | 650 |
| 651 if (mouse_hook_) { | 651 if (mouse_hook_) { |
| 652 UnhookWindowsHookEx(mouse_hook_); | 652 UnhookWindowsHookEx(mouse_hook_); |
| 653 mouse_hook_ = NULL; | 653 mouse_hook_ = NULL; |
| 654 } | 654 } |
| 655 } | 655 } |
| 656 | 656 |
| 657 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, | 657 void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, |
| 658 const gfx::Rect& rect) { | 658 const gfx::Rect& rect) { |
| 659 if (windowless_ && skia::SupportsPlatformPaint(canvas)) { | 659 if (windowless_ && |
| 660 skia::PlatformPaintSupport(canvas) != |
| 661 skia::PlatformDevice::PLATFORM_PAINT_UNSUPPORTED) { |
| 660 skia::ScopedPlatformPaint scoped_platform_paint(canvas); | 662 skia::ScopedPlatformPaint scoped_platform_paint(canvas); |
| 661 HDC hdc = scoped_platform_paint.GetPlatformSurface(); | 663 HDC hdc = scoped_platform_paint.GetPlatformSurface(); |
| 662 WindowlessPaint(hdc, rect); | 664 WindowlessPaint(hdc, rect); |
| 663 } | 665 } |
| 664 } | 666 } |
| 665 | 667 |
| 666 bool WebPluginDelegateImpl::WindowedCreatePlugin() { | 668 bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
| 667 DCHECK(!windowed_handle_); | 669 DCHECK(!windowed_handle_); |
| 668 | 670 |
| 669 RegisterNativeWindowClass(); | 671 RegisterNativeWindowClass(); |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1698 ::ReleaseCapture(); | 1700 ::ReleaseCapture(); |
| 1699 break; | 1701 break; |
| 1700 | 1702 |
| 1701 default: | 1703 default: |
| 1702 break; | 1704 break; |
| 1703 } | 1705 } |
| 1704 } | 1706 } |
| 1705 | 1707 |
| 1706 } // namespace npapi | 1708 } // namespace npapi |
| 1707 } // namespace webkit | 1709 } // namespace webkit |
| OLD | NEW |