OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/input/EventHandler.h" | 42 #include "core/input/EventHandler.h" |
43 #include "core/layout/LayoutView.h" | 43 #include "core/layout/LayoutView.h" |
44 #include "core/layout/api/LayoutViewItem.h" | 44 #include "core/layout/api/LayoutViewItem.h" |
45 #include "core/layout/compositing/PaintLayerCompositor.h" | 45 #include "core/layout/compositing/PaintLayerCompositor.h" |
46 #include "core/page/ContextMenuController.h" | 46 #include "core/page/ContextMenuController.h" |
47 #include "core/page/FocusController.h" | 47 #include "core/page/FocusController.h" |
48 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
49 #include "platform/KeyboardCodes.h" | 49 #include "platform/KeyboardCodes.h" |
50 #include "public/platform/WebFrameScheduler.h" | 50 #include "public/platform/WebFrameScheduler.h" |
51 #include "public/web/WebWidgetClient.h" | 51 #include "public/web/WebWidgetClient.h" |
| 52 #include "web/CompositorProxyClientImpl.h" |
52 #include "web/ContextMenuAllowedScope.h" | 53 #include "web/ContextMenuAllowedScope.h" |
53 #include "web/WebDevToolsAgentImpl.h" | 54 #include "web/WebDevToolsAgentImpl.h" |
54 #include "web/WebInputEventConversion.h" | 55 #include "web/WebInputEventConversion.h" |
55 #include "web/WebLocalFrameImpl.h" | 56 #include "web/WebLocalFrameImpl.h" |
56 #include "web/WebPluginContainerImpl.h" | 57 #include "web/WebPluginContainerImpl.h" |
57 #include "web/WebRemoteFrameImpl.h" | 58 #include "web/WebRemoteFrameImpl.h" |
58 #include "web/WebViewFrameWidget.h" | 59 #include "web/WebViewFrameWidget.h" |
59 | 60 |
60 namespace blink { | 61 namespace blink { |
61 | 62 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 void WebFrameWidgetImpl::scheduleAnimation() | 393 void WebFrameWidgetImpl::scheduleAnimation() |
393 { | 394 { |
394 if (m_layerTreeView) { | 395 if (m_layerTreeView) { |
395 m_layerTreeView->setNeedsBeginFrame(); | 396 m_layerTreeView->setNeedsBeginFrame(); |
396 return; | 397 return; |
397 } | 398 } |
398 if (m_client) | 399 if (m_client) |
399 m_client->scheduleAnimation(); | 400 m_client->scheduleAnimation(); |
400 } | 401 } |
401 | 402 |
| 403 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient() |
| 404 { |
| 405 return new CompositorProxyClientImpl(); |
| 406 } |
| 407 |
402 void WebFrameWidgetImpl::applyViewportDeltas( | 408 void WebFrameWidgetImpl::applyViewportDeltas( |
403 const WebFloatSize& visualViewportDelta, | 409 const WebFloatSize& visualViewportDelta, |
404 const WebFloatSize& mainFrameDelta, | 410 const WebFloatSize& mainFrameDelta, |
405 const WebFloatSize& elasticOverscrollDelta, | 411 const WebFloatSize& elasticOverscrollDelta, |
406 float pageScaleDelta, | 412 float pageScaleDelta, |
407 float topControlsDelta) | 413 float topControlsDelta) |
408 { | 414 { |
409 // FIXME: To be implemented. | 415 // FIXME: To be implemented. |
410 } | 416 } |
411 | 417 |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 | 1096 |
1091 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) | 1097 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) |
1092 { | 1098 { |
1093 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); | 1099 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); |
1094 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1100 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
1095 result.setToShadowHostIfInUserAgentShadowRoot(); | 1101 result.setToShadowHostIfInUserAgentShadowRoot(); |
1096 return result; | 1102 return result; |
1097 } | 1103 } |
1098 | 1104 |
1099 } // namespace blink | 1105 } // namespace blink |
OLD | NEW |