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

Unified Diff: sky/engine/web/ChromeClientImpl.cpp

Issue 880643007: Merge WebWidgetClient into WebViewClient. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/ChromeClientImpl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/ChromeClientImpl.cpp
diff --git a/sky/engine/web/ChromeClientImpl.cpp b/sky/engine/web/ChromeClientImpl.cpp
index 40ce3386ca592d7ca05f4e2a6bf319a6b078decf..5cf3877e6788b33d6f366012fcaee42919d35e81 100644
--- a/sky/engine/web/ChromeClientImpl.cpp
+++ b/sky/engine/web/ChromeClientImpl.cpp
@@ -60,7 +60,6 @@
#include "sky/engine/public/web/WebNode.h"
#include "sky/engine/public/web/WebSettings.h"
#include "sky/engine/public/web/WebTextDirection.h"
-#include "sky/engine/public/web/WebTouchAction.h"
#include "sky/engine/public/web/WebViewClient.h"
#include "sky/engine/web/WebLocalFrameImpl.h"
#include "sky/engine/web/WebSettingsImpl.h"
@@ -122,8 +121,6 @@ FloatRect ChromeClientImpl::pageRect()
void ChromeClientImpl::focus()
{
- if (m_webView->client())
- m_webView->client()->didFocus();
}
bool ChromeClientImpl::canTakeFocus(FocusType)
@@ -167,13 +164,6 @@ WebNavigationPolicy ChromeClientImpl::getNavigationPolicy()
void ChromeClientImpl::show(NavigationPolicy navigationPolicy)
{
- if (!m_webView->client())
- return;
-
- WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPolicy);
- if (policy == WebNavigationPolicyIgnore)
- policy = getNavigationPolicy();
- m_webView->client()->show(policy);
}
bool ChromeClientImpl::shouldReportDetailedMessageForSource(const String& url)
@@ -253,8 +243,6 @@ void ChromeClientImpl::setCursor(const Cursor& cursor)
void ChromeClientImpl::setCursor(const WebCursorInfo& cursor)
{
- if (m_webView->client())
- m_webView->client()->didChangeCursor(cursor);
}
String ChromeClientImpl::acceptLanguages()
@@ -262,30 +250,8 @@ String ChromeClientImpl::acceptLanguages()
return m_webView->client()->acceptLanguages();
}
-void ChromeClientImpl::setTouchAction(TouchAction touchAction)
-{
- if (WebViewClient* client = m_webView->client()) {
- WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction);
- client->setTouchAction(webTouchAction);
- }
-}
-
void ChromeClientImpl::willSetInputMethodState()
{
- if (m_webView->client())
- m_webView->client()->resetInputMethod();
-}
-
-void ChromeClientImpl::didUpdateTextOfFocusedElementByNonUserInput()
-{
- if (m_webView->client())
- m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput();
-}
-
-void ChromeClientImpl::showImeIfNeeded()
-{
- if (m_webView->client())
- m_webView->client()->showImeIfNeeded();
}
} // namespace blink
« no previous file with comments | « sky/engine/web/ChromeClientImpl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698