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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2729543002: Rename platform/Widget to platform/FrameViewBase in web. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index e017d44a570f1e8ebfdbaf408ecf3730c718fec7..a5721cfe8ad85855925b1a6891a54f473cf1ba00 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -545,9 +545,9 @@ void ChromeClientImpl::invalidateRect(const IntRect& updateRect) {
m_webView->invalidateRect(updateRect);
}
-void ChromeClientImpl::scheduleAnimation(Widget* widget) {
- DCHECK(widget->isFrameView());
- FrameView* view = toFrameView(widget);
+void ChromeClientImpl::scheduleAnimation(FrameViewBase* frameViewBase) {
+ DCHECK(frameViewBase->isFrameView());
+ FrameView* view = toFrameView(frameViewBase);
LocalFrame* frame = view->frame().localFrameRoot();
// If the frame is still being created, it might not yet have a WebWidget.
@@ -559,12 +559,13 @@ void ChromeClientImpl::scheduleAnimation(Widget* widget) {
WebLocalFrameImpl::fromFrame(frame)->frameWidget()->scheduleAnimation();
}
-IntRect ChromeClientImpl::viewportToScreen(const IntRect& rectInViewport,
- const Widget* widget) const {
+IntRect ChromeClientImpl::viewportToScreen(
+ const IntRect& rectInViewport,
+ const FrameViewBase* frameViewBase) const {
WebRect screenRect(rectInViewport);
- DCHECK(widget->isFrameView());
- const FrameView* view = toFrameView(widget);
+ DCHECK(frameViewBase->isFrameView());
+ const FrameView* view = toFrameView(frameViewBase);
LocalFrame* frame = view->frame().localFrameRoot();
WebWidgetClient* client =
@@ -639,9 +640,10 @@ void ChromeClientImpl::showMouseOverURL(const HitTestResult& result) {
isHTMLEmbedElement(*result.innerNode()))) {
LayoutObject* object = result.innerNode()->layoutObject();
if (object && object->isLayoutPart()) {
- Widget* widget = toLayoutPart(object)->widget();
- if (widget && widget->isPluginContainer()) {
- WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget);
+ FrameViewBase* frameViewBase = toLayoutPart(object)->widget();
+ if (frameViewBase && frameViewBase->isPluginContainer()) {
+ WebPluginContainerImpl* plugin =
+ toWebPluginContainerImpl(frameViewBase);
url = plugin->plugin()->linkAtPosition(
result.roundedPointInInnerNodeFrame());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698