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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/text/BidiResolver.h ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | 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) 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 if (!m_webView->client()) 545 if (!m_webView->client())
546 return; 546 return;
547 547
548 WebURL url; 548 WebURL url;
549 // Find out if the mouse is over a link, and if so, let our UI know... 549 // Find out if the mouse is over a link, and if so, let our UI know...
550 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { 550 if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) {
551 url = result.absoluteLinkURL(); 551 url = result.absoluteLinkURL();
552 } else if (result.innerNonSharedNode() 552 } else if (result.innerNonSharedNode()
553 && (isHTMLObjectElement(*result.innerNonSharedNode()) 553 && (isHTMLObjectElement(*result.innerNonSharedNode())
554 || isHTMLEmbedElement(*result.innerNonSharedNode()))) { 554 || isHTMLEmbedElement(*result.innerNonSharedNode()))) {
555 RenderObject* object = result.innerNonSharedNode()->renderer(); 555 LayoutObject* object = result.innerNonSharedNode()->renderer();
556 if (object && object->isRenderPart()) { 556 if (object && object->isRenderPart()) {
557 Widget* widget = toRenderPart(object)->widget(); 557 Widget* widget = toRenderPart(object)->widget();
558 if (widget && widget->isPluginContainer()) { 558 if (widget && widget->isPluginContainer()) {
559 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget ); 559 WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget );
560 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne rNodeFrame()); 560 url = plugin->plugin()->linkAtPosition(result.roundedPointInInne rNodeFrame());
561 } 561 }
562 } 562 }
563 } 563 }
564 564
565 m_webView->client()->setMouseOverURL(url); 565 m_webView->client()->setMouseOverURL(url);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu t)); 890 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu t));
891 } 891 }
892 892
893 void ChromeClientImpl::registerViewportLayers() const 893 void ChromeClientImpl::registerViewportLayers() const
894 { 894 {
895 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie w->pinchVirtualViewportEnabled()) 895 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie w->pinchVirtualViewportEnabled())
896 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView()); 896 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView());
897 } 897 }
898 898
899 } // namespace blink 899 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/text/BidiResolver.h ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698