| 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_ && skia::IsPlatformPaintSupported(canvas)) { |
| 660 skia::ScopedPlatformPaint scoped_platform_paint(canvas); | 660 skia::ScopedPlatformPaint scoped_platform_paint(canvas); |
| 661 HDC hdc = scoped_platform_paint.GetPlatformSurface(); | 661 HDC hdc = scoped_platform_paint.GetPlatformSurface(); |
| 662 WindowlessPaint(hdc, rect); | 662 WindowlessPaint(hdc, rect); |
| 663 } | 663 } |
| 664 } | 664 } |
| 665 | 665 |
| 666 bool WebPluginDelegateImpl::WindowedCreatePlugin() { | 666 bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
| 667 DCHECK(!windowed_handle_); | 667 DCHECK(!windowed_handle_); |
| 668 | 668 |
| 669 RegisterNativeWindowClass(); | 669 RegisterNativeWindowClass(); |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1698 ::ReleaseCapture(); | 1698 ::ReleaseCapture(); |
| 1699 break; | 1699 break; |
| 1700 | 1700 |
| 1701 default: | 1701 default: |
| 1702 break; | 1702 break; |
| 1703 } | 1703 } |
| 1704 } | 1704 } |
| 1705 | 1705 |
| 1706 } // namespace npapi | 1706 } // namespace npapi |
| 1707 } // namespace webkit | 1707 } // namespace webkit |
| OLD | NEW |