Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create TestCompositorProxyClient for CompositorWorkerThreadTest. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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()
1077 {
1078 return m_webView->createCompositorProxyClient();
dcheng 2016/05/12 16:56:15 Why does this have to go through WebView? Why can'
flackr 2016/05/12 17:00:51 In this patch it absolutely could - I can move it
dcheng 2016/05/12 17:09:29 I don't think that patch will work well with OOPI:
1079 }
1080
1076 void ChromeClientImpl::registerPopupOpeningObserver(PopupOpeningObserver* observ er) 1081 void ChromeClientImpl::registerPopupOpeningObserver(PopupOpeningObserver* observ er)
1077 { 1082 {
1078 DCHECK(observer); 1083 DCHECK(observer);
1079 m_popupOpeningObservers.append(observer); 1084 m_popupOpeningObservers.append(observer);
1080 } 1085 }
1081 1086
1082 void ChromeClientImpl::unregisterPopupOpeningObserver(PopupOpeningObserver* obse rver) 1087 void ChromeClientImpl::unregisterPopupOpeningObserver(PopupOpeningObserver* obse rver)
1083 { 1088 {
1084 size_t index = m_popupOpeningObservers.find(observer); 1089 size_t index = m_popupOpeningObservers.find(observer);
1085 DCHECK_NE(index, kNotFound); 1090 DCHECK_NE(index, kNotFound);
(...skipping 22 matching lines...) Expand all
1108 { 1113 {
1109 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease()); 1114 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r elease());
1110 } 1115 }
1111 1116
1112 double ChromeClientImpl::lastFrameTimeMonotonic() const 1117 double ChromeClientImpl::lastFrameTimeMonotonic() const
1113 { 1118 {
1114 return m_webView->lastFrameTimeMonotonic(); 1119 return m_webView->lastFrameTimeMonotonic();
1115 } 1120 }
1116 1121
1117 } // namespace blink 1122 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698