| 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) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 { | 1066 { |
| 1067 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 1067 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 1068 m_webView->page()->frameHost().visualViewport().registerLayersWithTreeVi
ew(m_webView->layerTreeView()); | 1068 m_webView->page()->frameHost().visualViewport().registerLayersWithTreeVi
ew(m_webView->layerTreeView()); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void ChromeClientImpl::didUpdateTopControls() const | 1071 void ChromeClientImpl::didUpdateTopControls() const |
| 1072 { | 1072 { |
| 1073 m_webView->didUpdateTopControls(); | 1073 m_webView->didUpdateTopControls(); |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 CompositorProxyClient* ChromeClientImpl::createCompositorProxyClient(LocalFrame*
frame) |
| 1077 { |
| 1078 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 1079 return webFrame->localRoot()->frameWidget()->createCompositorProxyClient(); |
| 1080 } |
| 1081 |
| 1076 void ChromeClientImpl::registerPopupOpeningObserver(PopupOpeningObserver* observ
er) | 1082 void ChromeClientImpl::registerPopupOpeningObserver(PopupOpeningObserver* observ
er) |
| 1077 { | 1083 { |
| 1078 DCHECK(observer); | 1084 DCHECK(observer); |
| 1079 m_popupOpeningObservers.append(observer); | 1085 m_popupOpeningObservers.append(observer); |
| 1080 } | 1086 } |
| 1081 | 1087 |
| 1082 void ChromeClientImpl::unregisterPopupOpeningObserver(PopupOpeningObserver* obse
rver) | 1088 void ChromeClientImpl::unregisterPopupOpeningObserver(PopupOpeningObserver* obse
rver) |
| 1083 { | 1089 { |
| 1084 size_t index = m_popupOpeningObservers.find(observer); | 1090 size_t index = m_popupOpeningObservers.find(observer); |
| 1085 DCHECK_NE(index, kNotFound); | 1091 DCHECK_NE(index, kNotFound); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1108 { | 1114 { |
| 1109 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); | 1115 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); |
| 1110 } | 1116 } |
| 1111 | 1117 |
| 1112 double ChromeClientImpl::lastFrameTimeMonotonic() const | 1118 double ChromeClientImpl::lastFrameTimeMonotonic() const |
| 1113 { | 1119 { |
| 1114 return m_webView->lastFrameTimeMonotonic(); | 1120 return m_webView->lastFrameTimeMonotonic(); |
| 1115 } | 1121 } |
| 1116 | 1122 |
| 1117 } // namespace blink | 1123 } // namespace blink |
| OLD | NEW |