| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void Chrome::show(NavigationPolicy policy) const | 99 void Chrome::show(NavigationPolicy policy) const |
| 100 { | 100 { |
| 101 m_client->show(policy); | 101 m_client->show(policy); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modif
ierFlags) | 104 void Chrome::mouseDidMoveOverElement(const HitTestResult& result, unsigned modif
ierFlags) |
| 105 { | 105 { |
| 106 m_client->mouseDidMoveOverElement(result, modifierFlags); | 106 m_client->mouseDidMoveOverElement(result, modifierFlags); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void Chrome::setToolTip(const HitTestResult& result) | |
| 110 { | |
| 111 // First priority is a potential toolTip representing a spelling or grammar
error | |
| 112 TextDirection toolTipDirection; | |
| 113 String toolTip = result.spellingToolTip(toolTipDirection); | |
| 114 | |
| 115 // Next we'll consider a tooltip for element with "title" attribute | |
| 116 if (toolTip.isEmpty()) | |
| 117 toolTip = result.title(toolTipDirection); | |
| 118 | |
| 119 m_client->setToolTip(toolTip, toolTipDirection); | |
| 120 } | |
| 121 | |
| 122 void Chrome::setCursor(const Cursor& cursor) | 109 void Chrome::setCursor(const Cursor& cursor) |
| 123 { | 110 { |
| 124 m_client->setCursor(cursor); | 111 m_client->setCursor(cursor); |
| 125 } | 112 } |
| 126 | 113 |
| 127 void Chrome::scheduleAnimation() | 114 void Chrome::scheduleAnimation() |
| 128 { | 115 { |
| 129 WTF_LOG(ScriptedAnimationController, "Chrome::scheduleAnimation"); | 116 WTF_LOG(ScriptedAnimationController, "Chrome::scheduleAnimation"); |
| 130 m_page->animator().setAnimationFramePending(); | 117 m_page->animator().setAnimationFramePending(); |
| 131 m_client->scheduleAnimation(); | 118 m_client->scheduleAnimation(); |
| 132 } | 119 } |
| 133 | 120 |
| 134 void Chrome::willBeDestroyed() | 121 void Chrome::willBeDestroyed() |
| 135 { | 122 { |
| 136 m_client->chromeDestroyed(); | 123 m_client->chromeDestroyed(); |
| 137 } | 124 } |
| 138 | 125 |
| 139 } // namespace blink | 126 } // namespace blink |
| OLD | NEW |