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

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

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix issues in AutomationApiTest.Events Created 5 years, 2 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) 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() && toNode->shouldHaveFocusAppearance()) 205 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() && toNode->shouldHaveFocusAppearance())
206 focusURL = toElement(toNode)->hrefURL(); 206 focusURL = toElement(toNode)->hrefURL();
207 m_webView->client()->setKeyboardFocusURL(focusURL); 207 m_webView->client()->setKeyboardFocusURL(focusURL);
208 } 208 }
209 209
210 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) 210 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame)
211 { 211 {
212 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); 212 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame);
213 if (webframe && webframe->client()) 213 if (webframe && webframe->client())
214 webframe->client()->frameFocused(); 214 webframe->client()->frameFocused();
215
216 m_webView->client()->focusedFrameChanged();
215 } 217 }
216 218
217 bool ChromeClientImpl::hadFormInteraction() const 219 bool ChromeClientImpl::hadFormInteraction() const
218 { 220 {
219 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal s()->hadFormInteraction(); 221 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal s()->hadFormInteraction();
220 } 222 }
221 223
222 namespace { 224 namespace {
223 225
224 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol icy) 226 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol icy)
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 return m_webView->elasticOverscroll(); 1009 return m_webView->elasticOverscroll();
1008 } 1010 }
1009 1011
1010 void ChromeClientImpl::didObserveNonGetFetchFromScript() const 1012 void ChromeClientImpl::didObserveNonGetFetchFromScript() const
1011 { 1013 {
1012 if (m_webView->pageImportanceSignals()) 1014 if (m_webView->pageImportanceSignals())
1013 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1015 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1014 } 1016 }
1015 1017
1016 } // namespace blink 1018 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698