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

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

Issue 749333002: Plumbing for frame-specific WebWidgets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual void needTouchEvents(bool needsTouchEvents) override 155 virtual void needTouchEvents(bool needsTouchEvents) override
156 { 156 {
157 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents); 157 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents);
158 } 158 }
159 159
160 virtual GraphicsLayerFactory* graphicsLayerFactory() const override 160 virtual GraphicsLayerFactory* graphicsLayerFactory() const override
161 { 161 {
162 return m_popup->m_webView->graphicsLayerFactory(); 162 return m_popup->m_webView->graphicsLayerFactory();
163 } 163 }
164 164
165 virtual void attachRootGraphicsLayer(GraphicsLayer* graphicsLayer) override 165 virtual void attachRootGraphicsLayer(GraphicsLayer* graphicsLayer, LocalFram e* localRoot) override
166 { 166 {
167 m_popup->setRootGraphicsLayer(graphicsLayer); 167 m_popup->setRootGraphicsLayer(graphicsLayer);
168 } 168 }
169 169
170 virtual void postAccessibilityNotification(AXObject* obj, AXObjectCache::AXN otification notification) override 170 virtual void postAccessibilityNotification(AXObject* obj, AXObjectCache::AXN otification notification) override
171 { 171 {
172 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_popup->m_popup Client->ownerElement().document().frame()); 172 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(m_popup->m_popup Client->ownerElement().document().frame());
173 if (obj && frame && frame->client()) 173 if (obj && frame && frame->client())
174 frame->client()->postAccessibilityEvent(WebAXObject(obj), static_cas t<WebAXEvent>(notification)); 174 frame->client()->postAccessibilityEvent(WebAXObject(obj), static_cas t<WebAXEvent>(notification));
175 175
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // A WebPagePopupImpl instance usually has two references. 470 // A WebPagePopupImpl instance usually has two references.
471 // - One owned by the instance itself. It represents the visible widget. 471 // - One owned by the instance itself. It represents the visible widget.
472 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the 472 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the
473 // WebPagePopupImpl to close. 473 // WebPagePopupImpl to close.
474 // We need them because the closing operation is asynchronous and the widget 474 // We need them because the closing operation is asynchronous and the widget
475 // can be closed while the WebViewImpl is unaware of it. 475 // can be closed while the WebViewImpl is unaware of it.
476 return adoptRef(new WebPagePopupImpl(client)).leakRef(); 476 return adoptRef(new WebPagePopupImpl(client)).leakRef();
477 } 477 }
478 478
479 } // namespace blink 479 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698