Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 163933002: Send early ShowPress on TapDown when page isn't scrollable/pinchable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 if (m_webView->autofillClient()) 980 if (m_webView->autofillClient())
981 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement)); 981 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement));
982 } 982 }
983 983
984 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) 984 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input)
985 { 985 {
986 if (m_webView->autofillClient()) 986 if (m_webView->autofillClient())
987 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put)); 987 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in put));
988 } 988 }
989 989
990 float ChromeClientImpl::minimumPageScaleFactor() const
991 {
992 return m_webView->minimumPageScaleFactor();
993 }
994
995 float ChromeClientImpl::maximumPageScaleFactor() const
996 {
997 return m_webView->maximumPageScaleFactor();
998 }
999
990 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre ate(WebViewImpl* webView) 1000 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre ate(WebViewImpl* webView)
991 { 1001 {
992 return adoptPtr(new NavigatorContentUtilsClientImpl(webView)); 1002 return adoptPtr(new NavigatorContentUtilsClientImpl(webView));
993 } 1003 }
994 1004
995 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView) 1005 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView)
996 : m_webView(webView) 1006 : m_webView(webView)
997 { 1007 {
998 } 1008 }
999 1009
1000 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const WebCore::KURL& baseURL, const WebCore::KURL& url, const String& title) 1010 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const WebCore::KURL& baseURL, const WebCore::KURL& url, const String& title)
1001 { 1011 {
1002 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1012 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1003 } 1013 }
1004 1014
1005 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const WebCore::KURL& baseURL , const WebCore::KURL& url) 1015 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const WebCore::KURL& baseURL , const WebCore::KURL& url)
1006 { 1016 {
1007 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); 1017 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
1008 } 1018 }
1009 1019
1010 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) 1020 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
1011 { 1021 {
1012 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); 1022 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
1013 } 1023 }
1014 1024
1015 } // namespace blink 1025 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698