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

Side by Side Diff: sky/engine/web/ChromeClientImpl.cpp

Issue 925933004: Prune HitTestResult and stop special-casing links. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments 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
« no previous file with comments | « sky/engine/web/BUILD.gn ('k') | sky/engine/web/WebHitTestResult.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 return; 122 return;
123 if (type == FocusTypeBackward) 123 if (type == FocusTypeBackward)
124 m_webView->client()->focusPrevious(); 124 m_webView->client()->focusPrevious();
125 else 125 else
126 m_webView->client()->focusNext(); 126 m_webView->client()->focusNext();
127 } 127 }
128 128
129 void ChromeClientImpl::focusedNodeChanged(Node* node) 129 void ChromeClientImpl::focusedNodeChanged(Node* node)
130 { 130 {
131 m_webView->client()->focusedNodeChanged(WebNode(node)); 131 m_webView->client()->focusedNodeChanged(WebNode(node));
132
133 WebURL focusURL;
134 if (node && node->isElementNode() && toElement(node)->isLiveLink())
135 focusURL = toElement(node)->hrefURL();
136 m_webView->client()->setKeyboardFocusURL(focusURL);
137 } 132 }
138 133
139 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) 134 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame)
140 { 135 {
141 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 136 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
142 if (webframe && webframe->client()) 137 if (webframe && webframe->client())
143 webframe->client()->frameFocused(); 138 webframe->client()->frameFocused();
144 } 139 }
145 140
146 WebNavigationPolicy ChromeClientImpl::getNavigationPolicy() 141 WebNavigationPolicy ChromeClientImpl::getNavigationPolicy()
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) 222 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor)
228 { 223 {
229 } 224 }
230 225
231 String ChromeClientImpl::acceptLanguages() 226 String ChromeClientImpl::acceptLanguages()
232 { 227 {
233 return m_webView->client()->acceptLanguages(); 228 return m_webView->client()->acceptLanguages();
234 } 229 }
235 230
236 } // namespace blink 231 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/BUILD.gn ('k') | sky/engine/web/WebHitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698