| OLD | NEW |
| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() &&
toNode->shouldHaveFocusAppearance()) | 246 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() &&
toNode->shouldHaveFocusAppearance()) |
| 247 focusURL = toElement(toNode)->hrefURL(); | 247 focusURL = toElement(toNode)->hrefURL(); |
| 248 m_webView->client()->setKeyboardFocusURL(focusURL); | 248 m_webView->client()->setKeyboardFocusURL(focusURL); |
| 249 } | 249 } |
| 250 | 250 |
| 251 bool ChromeClientImpl::hadFormInteraction() const | 251 bool ChromeClientImpl::hadFormInteraction() const |
| 252 { | 252 { |
| 253 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal
s()->hadFormInteraction(); | 253 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal
s()->hadFormInteraction(); |
| 254 } | 254 } |
| 255 | 255 |
| 256 void ChromeClientImpl::startDragging(LocalFrame* frame, |
| 257 const WebDragData& dragData, |
| 258 WebDragOperationsMask mask, |
| 259 const WebImage& dragImage, |
| 260 const WebPoint& dragImageOffset) |
| 261 { |
| 262 m_webView->startDragging(frame, dragData, mask, dragImage, dragImageOffset); |
| 263 } |
| 264 |
| 265 bool ChromeClientImpl::acceptsLoadDrops() const |
| 266 { |
| 267 return !m_webView->client() || m_webView->client()->acceptsLoadDrops(); |
| 268 } |
| 269 |
| 256 namespace { | 270 namespace { |
| 257 | 271 |
| 258 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol
icy) | 272 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol
icy) |
| 259 { | 273 { |
| 260 if (!inputEvent) | 274 if (!inputEvent) |
| 261 return; | 275 return; |
| 262 | 276 |
| 263 unsigned short buttonNumber = 0; | 277 unsigned short buttonNumber = 0; |
| 264 if (inputEvent->type == WebInputEvent::MouseUp) { | 278 if (inputEvent->type == WebInputEvent::MouseUp) { |
| 265 | 279 |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 if (m_webView->pageImportanceSignals()) | 1108 if (m_webView->pageImportanceSignals()) |
| 1095 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); | 1109 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); |
| 1096 } | 1110 } |
| 1097 | 1111 |
| 1098 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameContex
t* blameContext) | 1112 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler(BlameContex
t* blameContext) |
| 1099 { | 1113 { |
| 1100 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); | 1114 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); |
| 1101 } | 1115 } |
| 1102 | 1116 |
| 1103 } // namespace blink | 1117 } // namespace blink |
| OLD | NEW |