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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (!canOpenModalIfDuringPageDismissal(frame->tree().top(), ChromeClient::Pr
omptDialog, prompt)) | 124 if (!canOpenModalIfDuringPageDismissal(frame->tree().top(), ChromeClient::Pr
omptDialog, prompt)) |
125 return false; | 125 return false; |
126 return openJavaScriptDialog(frame, prompt, ChromeClient::PromptDialog, [this
, frame, &prompt, &defaultValue, &result]() { | 126 return openJavaScriptDialog(frame, prompt, ChromeClient::PromptDialog, [this
, frame, &prompt, &defaultValue, &result]() { |
127 return openJavaScriptPromptDelegate(frame, prompt, defaultValue, result)
; | 127 return openJavaScriptPromptDelegate(frame, prompt, defaultValue, result)
; |
128 }); | 128 }); |
129 } | 129 } |
130 | 130 |
131 void ChromeClient::mouseDidMoveOverElement(const HitTestResult& result) | 131 void ChromeClient::mouseDidMoveOverElement(const HitTestResult& result) |
132 { | 132 { |
133 if (result.innerNode() && result.innerNode()->document().isDNSPrefetchEnable
d()) | 133 if (result.innerNode() && result.innerNode()->document().isDNSPrefetchEnable
d()) |
134 prefetchDNS(result.absoluteLinkURL().host()); | 134 prefetchDNS(result.absoluteLinkURL()); |
135 | 135 |
136 showMouseOverURL(result); | 136 showMouseOverURL(result); |
137 | 137 |
138 setToolTip(result); | 138 setToolTip(result); |
139 } | 139 } |
140 | 140 |
141 void ChromeClient::setToolTip(const HitTestResult& result) | 141 void ChromeClient::setToolTip(const HitTestResult& result) |
142 { | 142 { |
143 // First priority is a tooltip for element with "title" attribute. | 143 // First priority is a tooltip for element with "title" attribute. |
144 TextDirection toolTipDirection; | 144 TextDirection toolTipDirection; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 { | 179 { |
180 // Defer loads in case the client method runs a new event loop that would | 180 // Defer loads in case the client method runs a new event loop that would |
181 // otherwise cause the load to continue while we're in the middle of | 181 // otherwise cause the load to continue while we're in the middle of |
182 // executing JavaScript. | 182 // executing JavaScript. |
183 ScopedPageLoadDeferrer deferrer; | 183 ScopedPageLoadDeferrer deferrer; |
184 | 184 |
185 printDelegate(frame); | 185 printDelegate(frame); |
186 } | 186 } |
187 | 187 |
188 } // namespace blink | 188 } // namespace blink |
OLD | NEW |