| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "public/web/WebPluginContainer.h" | 31 #include "public/web/WebPluginContainer.h" |
| 32 | 32 |
| 33 #include <memory> | 33 #include <memory> |
| 34 #include <string> | 34 #include <string> |
| 35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 36 #include "core/events/KeyboardEvent.h" | 36 #include "core/events/KeyboardEvent.h" |
| 37 #include "core/frame/EventHandlerRegistry.h" | 37 #include "core/frame/EventHandlerRegistry.h" |
| 38 #include "core/frame/FrameHost.h" | |
| 39 #include "core/layout/LayoutObject.h" | 38 #include "core/layout/LayoutObject.h" |
| 40 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 41 #include "platform/graphics/GraphicsContext.h" | 40 #include "platform/graphics/GraphicsContext.h" |
| 42 #include "platform/graphics/paint/CullRect.h" | 41 #include "platform/graphics/paint/CullRect.h" |
| 43 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" | 42 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" |
| 44 #include "platform/graphics/paint/PaintController.h" | 43 #include "platform/graphics/paint/PaintController.h" |
| 45 #include "platform/graphics/paint/PaintRecorder.h" | 44 #include "platform/graphics/paint/PaintRecorder.h" |
| 46 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 45 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| 47 #include "platform/testing/URLTestHelpers.h" | 46 #include "platform/testing/URLTestHelpers.h" |
| 48 #include "platform/testing/UnitTestHelpers.h" | 47 #include "platform/testing/UnitTestHelpers.h" |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 webView->mainFrame()->document().getElementById( | 783 webView->mainFrame()->document().getElementById( |
| 785 WebString::fromUTF8("translated-plugin")); | 784 WebString::fromUTF8("translated-plugin")); |
| 786 pluginContainerOneElement.pluginContainer()->setWantsWheelEvents(true); | 785 pluginContainerOneElement.pluginContainer()->setWantsWheelEvents(true); |
| 787 | 786 |
| 788 runPendingTasks(); | 787 runPendingTasks(); |
| 789 EXPECT_TRUE(webView->page()->eventHandlerRegistry().hasEventHandlers( | 788 EXPECT_TRUE(webView->page()->eventHandlerRegistry().hasEventHandlers( |
| 790 EventHandlerRegistry::WheelEventBlocking)); | 789 EventHandlerRegistry::WheelEventBlocking)); |
| 791 } | 790 } |
| 792 | 791 |
| 793 } // namespace blink | 792 } // namespace blink |
| OLD | NEW |