OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #include "core/frame/Settings.h" | 58 #include "core/frame/Settings.h" |
59 #include "core/frame/SmartClip.h" | 59 #include "core/frame/SmartClip.h" |
60 #include "core/html/HTMLInputElement.h" | 60 #include "core/html/HTMLInputElement.h" |
61 #include "core/html/HTMLMediaElement.h" | 61 #include "core/html/HTMLMediaElement.h" |
62 #include "core/html/HTMLPlugInElement.h" | 62 #include "core/html/HTMLPlugInElement.h" |
63 #include "core/html/HTMLTextAreaElement.h" | 63 #include "core/html/HTMLTextAreaElement.h" |
64 #include "core/html/canvas/WebGLRenderingContext.h" | 64 #include "core/html/canvas/WebGLRenderingContext.h" |
65 #include "core/html/forms/PopupMenuClient.h" | 65 #include "core/html/forms/PopupMenuClient.h" |
66 #include "core/html/ime/InputMethodContext.h" | 66 #include "core/html/ime/InputMethodContext.h" |
67 #include "core/inspector/InspectorController.h" | 67 #include "core/inspector/InspectorController.h" |
| 68 #include "core/layout/LayoutPart.h" |
68 #include "core/layout/TextAutosizer.h" | 69 #include "core/layout/TextAutosizer.h" |
69 #include "core/layout/compositing/LayerCompositor.h" | 70 #include "core/layout/compositing/LayerCompositor.h" |
70 #include "core/loader/DocumentLoader.h" | 71 #include "core/loader/DocumentLoader.h" |
71 #include "core/loader/FrameLoader.h" | 72 #include "core/loader/FrameLoader.h" |
72 #include "core/page/Chrome.h" | 73 #include "core/page/Chrome.h" |
73 #include "core/page/ContextMenuController.h" | 74 #include "core/page/ContextMenuController.h" |
74 #include "core/page/ContextMenuProvider.h" | 75 #include "core/page/ContextMenuProvider.h" |
75 #include "core/page/DragController.h" | 76 #include "core/page/DragController.h" |
76 #include "core/page/DragData.h" | 77 #include "core/page/DragData.h" |
77 #include "core/page/DragSession.h" | 78 #include "core/page/DragSession.h" |
78 #include "core/page/EventHandler.h" | 79 #include "core/page/EventHandler.h" |
79 #include "core/page/FocusController.h" | 80 #include "core/page/FocusController.h" |
80 #include "core/page/FrameTree.h" | 81 #include "core/page/FrameTree.h" |
81 #include "core/page/InjectedStyleSheets.h" | 82 #include "core/page/InjectedStyleSheets.h" |
82 #include "core/page/Page.h" | 83 #include "core/page/Page.h" |
83 #include "core/page/PagePopupClient.h" | 84 #include "core/page/PagePopupClient.h" |
84 #include "core/page/PointerLockController.h" | 85 #include "core/page/PointerLockController.h" |
85 #include "core/page/ScopedPageLoadDeferrer.h" | 86 #include "core/page/ScopedPageLoadDeferrer.h" |
86 #include "core/page/TouchDisambiguation.h" | 87 #include "core/page/TouchDisambiguation.h" |
87 #include "core/rendering/RenderPart.h" | |
88 #include "core/rendering/RenderView.h" | 88 #include "core/rendering/RenderView.h" |
89 #include "core/storage/StorageNamespaceController.h" | 89 #include "core/storage/StorageNamespaceController.h" |
90 #include "modules/accessibility/AXObject.h" | 90 #include "modules/accessibility/AXObject.h" |
91 #include "modules/accessibility/AXObjectCacheImpl.h" | 91 #include "modules/accessibility/AXObjectCacheImpl.h" |
92 #include "modules/credentialmanager/CredentialManagerClient.h" | 92 #include "modules/credentialmanager/CredentialManagerClient.h" |
93 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 93 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
94 #include "modules/encryptedmedia/MediaKeysController.h" | 94 #include "modules/encryptedmedia/MediaKeysController.h" |
95 #include "modules/filesystem/InspectorFileSystemAgent.h" | 95 #include "modules/filesystem/InspectorFileSystemAgent.h" |
96 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 96 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
97 #include "modules/webdatabase/InspectorDatabaseAgent.h" | 97 #include "modules/webdatabase/InspectorDatabaseAgent.h" |
(...skipping 3396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3494 | 3494 |
3495 void WebViewImpl::performPluginAction(const WebPluginAction& action, | 3495 void WebViewImpl::performPluginAction(const WebPluginAction& action, |
3496 const WebPoint& location) | 3496 const WebPoint& location) |
3497 { | 3497 { |
3498 HitTestResult result = hitTestResultForWindowPos(location); | 3498 HitTestResult result = hitTestResultForWindowPos(location); |
3499 RefPtrWillBeRawPtr<Node> node = result.innerNonSharedNode(); | 3499 RefPtrWillBeRawPtr<Node> node = result.innerNonSharedNode(); |
3500 if (!isHTMLObjectElement(*node) && !isHTMLEmbedElement(*node)) | 3500 if (!isHTMLObjectElement(*node) && !isHTMLEmbedElement(*node)) |
3501 return; | 3501 return; |
3502 | 3502 |
3503 LayoutObject* object = node->renderer(); | 3503 LayoutObject* object = node->renderer(); |
3504 if (object && object->isRenderPart()) { | 3504 if (object && object->isLayoutPart()) { |
3505 Widget* widget = toRenderPart(object)->widget(); | 3505 Widget* widget = toLayoutPart(object)->widget(); |
3506 if (widget && widget->isPluginContainer()) { | 3506 if (widget && widget->isPluginContainer()) { |
3507 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); | 3507 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); |
3508 switch (action.type) { | 3508 switch (action.type) { |
3509 case WebPluginAction::Rotate90Clockwise: | 3509 case WebPluginAction::Rotate90Clockwise: |
3510 plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise)
; | 3510 plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise)
; |
3511 break; | 3511 break; |
3512 case WebPluginAction::Rotate90Counterclockwise: | 3512 case WebPluginAction::Rotate90Counterclockwise: |
3513 plugin->plugin()->rotateView(WebPlugin::RotationType90Counterclo
ckwise); | 3513 plugin->plugin()->rotateView(WebPlugin::RotationType90Counterclo
ckwise); |
3514 break; | 3514 break; |
3515 default: | 3515 default: |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4615 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4615 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4616 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4616 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4617 } | 4617 } |
4618 | 4618 |
4619 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4619 void WebViewImpl::forceNextWebGLContextCreationToFail() |
4620 { | 4620 { |
4621 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4621 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
4622 } | 4622 } |
4623 | 4623 |
4624 } // namespace blink | 4624 } // namespace blink |
OLD | NEW |