OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 { | 270 { |
271 ASSERT(frame); | 271 ASSERT(frame); |
272 m_client->setStatusbarText(status); | 272 m_client->setStatusbarText(status); |
273 } | 273 } |
274 | 274 |
275 IntRect Chrome::windowResizerRect() const | 275 IntRect Chrome::windowResizerRect() const |
276 { | 276 { |
277 return m_client->windowResizerRect(); | 277 return m_client->windowResizerRect(); |
278 } | 278 } |
279 | 279 |
280 void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modif
ierFlags) | 280 void Chrome::mouseDidMoveOverElement(const HitTestResult& result) |
281 { | 281 { |
282 if (result.innerNode()) { | 282 if (result.innerNode()) { |
283 if (result.innerNode()->document().isDNSPrefetchEnabled()) | 283 if (result.innerNode()->document().isDNSPrefetchEnabled()) |
284 prefetchDNS(result.absoluteLinkURL().host()); | 284 prefetchDNS(result.absoluteLinkURL().host()); |
285 } | 285 } |
286 m_client->mouseDidMoveOverElement(result, modifierFlags); | 286 m_client->mouseDidMoveOverElement(result); |
287 } | 287 } |
288 | 288 |
289 void Chrome::setToolTip(const HitTestResult& result) | 289 void Chrome::setToolTip(const HitTestResult& result) |
290 { | 290 { |
291 // First priority is a potential toolTip representing a spelling or grammar
error | 291 // First priority is a potential toolTip representing a spelling or grammar
error |
292 TextDirection toolTipDirection; | 292 TextDirection toolTipDirection; |
293 String toolTip = result.spellingToolTip(toolTipDirection); | 293 String toolTip = result.spellingToolTip(toolTipDirection); |
294 | 294 |
295 // Next we'll consider a tooltip for element with "title" attribute | 295 // Next we'll consider a tooltip for element with "title" attribute |
296 if (toolTip.isEmpty()) | 296 if (toolTip.isEmpty()) |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 for (size_t i = 0; i < observers.size(); ++i) | 402 for (size_t i = 0; i < observers.size(); ++i) |
403 observers[i]->willOpenPopup(); | 403 observers[i]->willOpenPopup(); |
404 } | 404 } |
405 | 405 |
406 void Chrome::willBeDestroyed() | 406 void Chrome::willBeDestroyed() |
407 { | 407 { |
408 m_client->chromeDestroyed(); | 408 m_client->chromeDestroyed(); |
409 } | 409 } |
410 | 410 |
411 } // namespace blink | 411 } // namespace blink |
OLD | NEW |