|
Lines 227-242
static Vector<PageGroupLoadDeferrer*>& pageGroupLoadDeferrerStack()
a/Source/WebKit/chromium/src/WebViewImpl.cpp_sec1
|
| 227 |
return deferrerStack; |
227 |
return deferrerStack; |
| 228 |
} |
228 |
} |
| 229 |
|
229 |
|
| 230 |
#if ENABLE(TOUCH_EVENTS) |
|
|
| 231 |
static Color tapHighlightColorForNode(const Node* node) |
| 232 |
{ |
| 233 |
Color tapHighlightColor = RenderStyle::initialTapHighlightColor().rgb(); |
| 234 |
if (node && node->renderer()) |
| 235 |
tapHighlightColor = node->renderer()->style()->tapHighlightColor().rgb(); |
| 236 |
return tapHighlightColor; |
| 237 |
} |
| 238 |
#endif |
| 239 |
|
| 240 |
// Ensure that the WebDragOperation enum values stay in sync with the original |
230 |
// Ensure that the WebDragOperation enum values stay in sync with the original |
| 241 |
// DragOperation constants. |
231 |
// DragOperation constants. |
| 242 |
#define COMPILE_ASSERT_MATCHING_ENUM(coreName) \ |
232 |
#define COMPILE_ASSERT_MATCHING_ENUM(coreName) \ |
|
Lines 3820-3831
WebGraphicsContext3D* WebViewImpl::sharedGraphicsContext3D()
a/Source/WebKit/chromium/src/WebViewImpl.cpp_sec2
|
| 3820 |
return GraphicsContext3DPrivate::extractWebGraphicsContext3D(SharedGraphicsContext3D::get().get()); |
3810 |
return GraphicsContext3DPrivate::extractWebGraphicsContext3D(SharedGraphicsContext3D::get().get()); |
| 3821 |
} |
3811 |
} |
| 3822 |
|
3812 |
|
| 3823 |
void WebViewImpl::showTouchHighlightQuads(const WebVector<WebFloatQuad>& highlight, WebColor highlightColor) |
|
|
| 3824 |
{ |
| 3825 |
// FIXME: Upstream this function from the chromium-android branch. |
| 3826 |
notImplemented(); |
| 3827 |
} |
| 3828 |
|
| 3829 |
void WebViewImpl::selectAutofillSuggestionAtIndex(unsigned listIndex) |
3813 |
void WebViewImpl::selectAutofillSuggestionAtIndex(unsigned listIndex) |
| 3830 |
{ |
3814 |
{ |
| 3831 |
if (m_autofillPopupClient && listIndex < m_autofillPopupClient->getSuggestionsCount()) |
3815 |
if (m_autofillPopupClient && listIndex < m_autofillPopupClient->getSuggestionsCount()) |
|
Lines 3856-3866
bool WebViewImpl::detectContentIntentOnTouch(const WebPoint& position, WebInputE
a/Source/WebKit/chromium/src/WebViewImpl.cpp_sec3
|
| 3856 |
return true; |
3840 |
return true; |
| 3857 |
} |
3841 |
} |
| 3858 |
|
3842 |
|
| 3859 |
// Temporarily highlight the content as we do with links. |
|
|
| 3860 |
Color tapHighlightColor = tapHighlightColorForNode(touchHit.innerNode()); |
| 3861 |
WebVector<WebFloatQuad> quads = content.range().textQuads(); |
| 3862 |
showTouchHighlightQuads(quads, tapHighlightColor.rgb()); |
| 3863 |
|
| 3864 |
m_client->scheduleContentIntent(content.intent()); |
3843 |
m_client->scheduleContentIntent(content.intent()); |
| 3865 |
return true; |
3844 |
return true; |
| 3866 |
} |
3845 |
} |