OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include "platform/RuntimeEnabledFeatures.h" | 74 #include "platform/RuntimeEnabledFeatures.h" |
75 #include "platform/UserGestureIndicator.h" | 75 #include "platform/UserGestureIndicator.h" |
76 #include "platform/exported/WrappedResourceResponse.h" | 76 #include "platform/exported/WrappedResourceResponse.h" |
77 #include "platform/geometry/LayoutRect.h" | 77 #include "platform/geometry/LayoutRect.h" |
78 #include "platform/graphics/GraphicsContext.h" | 78 #include "platform/graphics/GraphicsContext.h" |
79 #include "platform/graphics/GraphicsLayer.h" | 79 #include "platform/graphics/GraphicsLayer.h" |
80 #include "platform/graphics/paint/CullRect.h" | 80 #include "platform/graphics/paint/CullRect.h" |
81 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" | 81 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" |
82 #include "platform/scroll/ScrollAnimatorBase.h" | 82 #include "platform/scroll/ScrollAnimatorBase.h" |
83 #include "platform/scroll/ScrollbarTheme.h" | 83 #include "platform/scroll/ScrollbarTheme.h" |
| 84 #include "platform/wtf/Assertions.h" |
84 #include "public/platform/Platform.h" | 85 #include "public/platform/Platform.h" |
85 #include "public/platform/WebClipboard.h" | 86 #include "public/platform/WebClipboard.h" |
86 #include "public/platform/WebCompositorSupport.h" | 87 #include "public/platform/WebCompositorSupport.h" |
87 #include "public/platform/WebCursorInfo.h" | 88 #include "public/platform/WebCursorInfo.h" |
88 #include "public/platform/WebDragData.h" | 89 #include "public/platform/WebDragData.h" |
89 #include "public/platform/WebExternalTextureLayer.h" | 90 #include "public/platform/WebExternalTextureLayer.h" |
90 #include "public/platform/WebInputEvent.h" | 91 #include "public/platform/WebInputEvent.h" |
91 #include "public/platform/WebRect.h" | 92 #include "public/platform/WebRect.h" |
92 #include "public/platform/WebString.h" | 93 #include "public/platform/WebString.h" |
93 #include "public/platform/WebURL.h" | 94 #include "public/platform/WebURL.h" |
94 #include "public/platform/WebURLError.h" | 95 #include "public/platform/WebURLError.h" |
95 #include "public/platform/WebURLRequest.h" | 96 #include "public/platform/WebURLRequest.h" |
96 #include "public/web/WebDOMMessageEvent.h" | 97 #include "public/web/WebDOMMessageEvent.h" |
97 #include "public/web/WebDocument.h" | 98 #include "public/web/WebDocument.h" |
98 #include "public/web/WebElement.h" | 99 #include "public/web/WebElement.h" |
99 #include "public/web/WebFrameClient.h" | 100 #include "public/web/WebFrameClient.h" |
100 #include "public/web/WebPlugin.h" | 101 #include "public/web/WebPlugin.h" |
101 #include "public/web/WebPrintParams.h" | 102 #include "public/web/WebPrintParams.h" |
102 #include "public/web/WebPrintPresetOptions.h" | 103 #include "public/web/WebPrintPresetOptions.h" |
103 #include "public/web/WebViewClient.h" | 104 #include "public/web/WebViewClient.h" |
104 #include "web/ChromeClientImpl.h" | 105 #include "web/ChromeClientImpl.h" |
105 #include "web/WebDataSourceImpl.h" | 106 #include "web/WebDataSourceImpl.h" |
106 #include "web/WebInputEventConversion.h" | 107 #include "web/WebInputEventConversion.h" |
107 #include "web/WebLocalFrameImpl.h" | 108 #include "web/WebLocalFrameImpl.h" |
108 #include "web/WebViewImpl.h" | 109 #include "web/WebViewImpl.h" |
109 #include "wtf/Assertions.h" | |
110 | 110 |
111 namespace blink { | 111 namespace blink { |
112 | 112 |
113 // Public methods -------------------------------------------------------------- | 113 // Public methods -------------------------------------------------------------- |
114 | 114 |
115 void WebPluginContainerImpl::setFrameRect(const IntRect& frameRect) { | 115 void WebPluginContainerImpl::setFrameRect(const IntRect& frameRect) { |
116 FrameViewBase::setFrameRect(frameRect); | 116 FrameViewBase::setFrameRect(frameRect); |
117 } | 117 } |
118 | 118 |
119 void WebPluginContainerImpl::updateAllLifecyclePhases() { | 119 void WebPluginContainerImpl::updateAllLifecyclePhases() { |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 // frame view. | 986 // frame view. |
987 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); | 987 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRect); |
988 } | 988 } |
989 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); | 989 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); |
990 // Convert to the plugin position. | 990 // Convert to the plugin position. |
991 for (size_t i = 0; i < cutOutRects.size(); i++) | 991 for (size_t i = 0; i < cutOutRects.size(); i++) |
992 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); | 992 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); |
993 } | 993 } |
994 | 994 |
995 } // namespace blink | 995 } // namespace blink |
OLD | NEW |