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 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3496 } | 3496 } |
3497 | 3497 |
3498 void WebViewImpl::performPluginAction(const WebPluginAction& action, | 3498 void WebViewImpl::performPluginAction(const WebPluginAction& action, |
3499 const WebPoint& location) | 3499 const WebPoint& location) |
3500 { | 3500 { |
3501 HitTestResult result = hitTestResultForWindowPos(location); | 3501 HitTestResult result = hitTestResultForWindowPos(location); |
3502 RefPtrWillBeRawPtr<Node> node = result.innerNonSharedNode(); | 3502 RefPtrWillBeRawPtr<Node> node = result.innerNonSharedNode(); |
3503 if (!isHTMLObjectElement(*node) && !isHTMLEmbedElement(*node)) | 3503 if (!isHTMLObjectElement(*node) && !isHTMLEmbedElement(*node)) |
3504 return; | 3504 return; |
3505 | 3505 |
3506 RenderObject* object = node->renderer(); | 3506 LayoutObject* object = node->renderer(); |
3507 if (object && object->isRenderPart()) { | 3507 if (object && object->isRenderPart()) { |
3508 Widget* widget = toRenderPart(object)->widget(); | 3508 Widget* widget = toRenderPart(object)->widget(); |
3509 if (widget && widget->isPluginContainer()) { | 3509 if (widget && widget->isPluginContainer()) { |
3510 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); | 3510 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget); |
3511 switch (action.type) { | 3511 switch (action.type) { |
3512 case WebPluginAction::Rotate90Clockwise: | 3512 case WebPluginAction::Rotate90Clockwise: |
3513 plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise)
; | 3513 plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise)
; |
3514 break; | 3514 break; |
3515 case WebPluginAction::Rotate90Counterclockwise: | 3515 case WebPluginAction::Rotate90Counterclockwise: |
3516 plugin->plugin()->rotateView(WebPlugin::RotationType90Counterclo
ckwise); | 3516 plugin->plugin()->rotateView(WebPlugin::RotationType90Counterclo
ckwise); |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4620 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4620 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4621 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4621 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4622 } | 4622 } |
4623 | 4623 |
4624 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4624 void WebViewImpl::forceNextWebGLContextCreationToFail() |
4625 { | 4625 { |
4626 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4626 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
4627 } | 4627 } |
4628 | 4628 |
4629 } // namespace blink | 4629 } // namespace blink |
OLD | NEW |