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

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

Issue 1810853002: Blink Platform: Erase GraphicsLayerFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return m_popup->m_layerTreeView->haveScrollEventHandlers(); 189 return m_popup->m_layerTreeView->haveScrollEventHandlers();
190 return false; 190 return false;
191 } 191 }
192 192
193 void setTouchAction(TouchAction touchAction) override 193 void setTouchAction(TouchAction touchAction) override
194 { 194 {
195 if (WebViewClient* client = m_popup->m_webView->client()) 195 if (WebViewClient* client = m_popup->m_webView->client())
196 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); 196 client->setTouchAction(static_cast<WebTouchAction>(touchAction));
197 } 197 }
198 198
199 GraphicsLayerFactory* graphicsLayerFactory() const override
200 {
201 return m_popup->m_webView->graphicsLayerFactory();
202 }
203
204 void attachRootGraphicsLayer(GraphicsLayer* graphicsLayer, LocalFrame* local Root) override 199 void attachRootGraphicsLayer(GraphicsLayer* graphicsLayer, LocalFrame* local Root) override
205 { 200 {
206 m_popup->setRootGraphicsLayer(graphicsLayer); 201 m_popup->setRootGraphicsLayer(graphicsLayer);
207 } 202 }
208 203
209 void postAccessibilityNotification(AXObject* obj, AXObjectCache::AXNotificat ion notification) override 204 void postAccessibilityNotification(AXObject* obj, AXObjectCache::AXNotificat ion notification) override
210 { 205 {
211 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_popup->m_popup Client->ownerElement().document().frame()); 206 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_popup->m_popup Client->ownerElement().document().frame());
212 if (obj && frame && frame->client()) 207 if (obj && frame && frame->client())
213 frame->client()->postAccessibilityEvent(WebAXObject(obj), static_cas t<WebAXEvent>(notification)); 208 frame->client()->postAccessibilityEvent(WebAXObject(obj), static_cas t<WebAXEvent>(notification));
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 // A WebPagePopupImpl instance usually has two references. 561 // A WebPagePopupImpl instance usually has two references.
567 // - One owned by the instance itself. It represents the visible widget. 562 // - One owned by the instance itself. It represents the visible widget.
568 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the 563 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the
569 // WebPagePopupImpl to close. 564 // WebPagePopupImpl to close.
570 // We need them because the closing operation is asynchronous and the widget 565 // We need them because the closing operation is asynchronous and the widget
571 // can be closed while the WebViewImpl is unaware of it. 566 // can be closed while the WebViewImpl is unaware of it.
572 return adoptRef(new WebPagePopupImpl(client)).leakRef(); 567 return adoptRef(new WebPagePopupImpl(client)).leakRef();
573 } 568 }
574 569
575 } // namespace blink 570 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlay.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698