/frameworks/webview/chromium/tools/WebViewShell/src/com/android/webview/chromium/shell/ |
TelemetryActivity.java | 17 package com.android.webview.chromium.shell; 22 import android.webkit.WebView; 34 WebView webView = (WebView) findViewById(R.id.webview); 36 webView.getSettings().setJavaScriptEnabled(true); 38 webView.setWebViewClient(new WebViewClient() { 40 public boolean shouldOverrideUrlLoading(WebView webView, String url) [all...] |
JankActivity.java | 17 package com.android.webview.chromium.shell; 23 import android.webkit.WebView; 27 * This activity is designed for Android Jank testing of WebView. It takes a URL as an argument, and 39 WebView webView = (WebView) findViewById(R.id.webview); 42 webView.setWebViewClient(new WebViewClient() { 44 public boolean shouldOverrideUrlLoading(WebView webView, String url) [all...] |
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebView_WebViewTransportTest.java | 22 import android.webkit.WebView; 23 import android.webkit.WebView.WebViewTransport; 38 WebView webView = getActivity().getWebView(); 39 WebViewTransport transport = webView.new WebViewTransport(); 43 transport.setWebView(webView); 44 assertSame(webView, transport.getWebView());
|
WebViewSslTest.java | 33 import android.webkit.WebView; [all...] |
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
WebSearchableFormDataTest.cpp | 69 WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + "search_form.html"); 72 webView->mainFrame()->document().forms(forms);
|
FrameTestHelpers.h | 69 // Convenience class for handling the lifetime of a WebView and its associated mainframe in tests. 76 // Creates and initializes the WebView. Implicitly calls reset() first. IF a 87 WebView* webView() const { return m_webView; }
|
ProgrammaticScrollTest.cpp | 13 #include "public/web/WebView.h" 56 WebView* webView = webViewHelper.initializeAndLoad(m_baseURL + "long_scroll.html", true, 0, 0); 57 webView->resize(WebSize(1000, 1000)); 58 webView->layout(); 60 WebViewImpl* webViewImpl = toWebViewImpl(webView); 86 WebView* webView = webViewHelper.initializeAndLoad(m_baseURL + "long_scroll.html", true, 0, 0); 87 webView->resize(WebSize(1000, 1000)); 88 webView->layout() [all...] |
WebPageSerializerTest.cpp | 43 #include "public/web/WebView.h" 82 FrameTestHelpers::loadFrame(m_helper.webView()->mainFrame(), url.string().utf8()); 97 WebView* webView() const { return m_helper.webView(); } 117 webView(), m_supportedSchemes, &resources, &frames)); 163 webView(), m_supportedSchemes, &resources, &frames));
|
WebPluginContainerTest.cpp | 45 #include "public/web/WebView.h" 96 WebPluginContainer* getWebPluginContainer(WebView* webView, const WebString& id) 98 WebElement element = webView->mainFrame()->document().getElementById(id); 106 WebView* webView = webViewHelper.initializeAndLoad(m_baseURL + "plugin_container.html", true, new TestPluginWebFrameClient()); 107 ASSERT(webView); 108 webView->settings()->setPluginsEnabled(true); 109 webView->resize(WebSize(300, 300)); 110 webView->layout() [all...] |
TouchActionTest.cpp | 52 #include "public/web/WebView.h" 123 void sendTouchEvent(WebView*, WebInputEvent::Type, WebCore::IntPoint clientPoint); 124 WebView* setupTest(std::string file, TouchActionTrackingWebViewClient&); 125 void runTestOnTree(WebCore::ContainerNode* root, WebView*, TouchActionTrackingWebViewClient&); 145 WebView* webView = setupTest(file, client); 147 RefPtrWillBePersistent<WebCore::Document> document = static_cast<PassRefPtrWillBeRawPtr<WebCore::Document> >(webView->mainFrame()->document()); 148 runTestOnTree(document.get(), webView, client); 157 WebView* webView = setupTest(file, client) [all...] |
WebPageNewSerializerTest.cpp | 46 #include "public/web/WebView.h" 162 FrameTestHelpers::loadFrame(m_helper.webView()->mainFrame(), url.string().utf8()); 182 WebView* webView() const { return m_helper.webView(); } 215 WebPageSerializer::serialize(webView(), &resources); 242 WebPageSerializer::serialize(webView(), &resources); 278 WebPageSerializer::serialize(webView(), &resources); 305 WebPageSerializer::serialize(webView(), &resources); 326 WebCString mhtmlData = WebPageSerializer::serializeToMHTML(webView()); [all...] |
PopupMenuTest.cpp | 58 #include "public/web/WebView.h" 202 // Returns true if there currently is a select popup in the WebView. 203 bool popupOpen() const { return webView()->selectPopup(); } 229 // Simulates a key event on the WebView. 230 // The WebView forwards the event to the select popup if one is open. 236 webView()->handleInputEvent(keyEvent); 244 webView()->selectPopup()->handleMouseDownEvent(mouseEvent); 250 webView()->selectPopup()->handleMouseReleaseEvent(mouseEvent); 263 WebViewImpl* webView() const { return m_helper.webViewImpl(); } 299 webView()->setFocus(false) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/ |
GAEChannelClient.java | 36 import android.webkit.WebView; 49 private WebView webView; 69 webView = new WebView(activity); 70 webView.getSettings().setJavaScriptEnabled(true); 71 webView.setWebChromeClient(new WebChromeClient() { // Purely for debugging. 78 webView.setWebViewClient(new WebViewClient() { // Purely for debugging. 80 WebView view, int errorCode, String description, 88 webView.addJavascriptInterface [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
WebViewTest.java | 6 import android.webkit.WebView; 24 private WebView webView; 29 webView = new WebView(null); 30 shadowWebView = Robolectric.shadowOf(webView); 35 webView.loadUrl("http://example.com"); 36 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("http://example.com")); 41 webView.loadData("<html><body><h1>Hi</h1></body></html>", "text/html", "utf-8"); 42 ShadowWebView.LoadData lastLoadData = shadowOf(webView).getLastLoadData() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Focus1.java | 23 import android.webkit.WebView; 37 WebView webView = (WebView) findViewById(R.id.rssWebView); 38 webView.loadData(
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
HelpActivity.java | 25 import android.webkit.WebView; 102 WebView webView = new WebView(this); 103 setContentView(webView); 119 // This line ensures the WebView remains embedded in this activity and doesn't launch an 121 webView.setWebViewClient(new WebViewClient()); 122 webView.getSettings().setJavaScriptEnabled(true); 124 webView.loadUrl(url);
|
/packages/apps/Browser/src/com/android/browser/preferences/ |
WebViewPreview.java | 27 import android.webkit.WebView; 34 protected WebView mWebView; 58 protected void setupWebView(WebView view) {} 63 WebView webView = (WebView) root.findViewById(R.id.webview); 64 // Tell WebView to really, truly ignore all touch events. No, seriously, 66 webView.setFocusable(false); 67 webView.setFocusableInTouchMode(false) [all...] |
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/ |
PowerTestActivity.java | 29 import android.webkit.WebView; 46 private WebView webView; 74 webView = new WebView(this); 75 webView.getSettings().setJavaScriptEnabled(true); 76 webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(false); 77 webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NORMAL); 81 webView.setWebViewClient(webViewClient); 82 webView.setWebChromeClient(chromeClient) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
PrintUtils.java | 27 import android.webkit.WebView; 86 * Sets up a webview to perform the printing work. 91 final WebView webView = new WebView(context); 92 final WebSettings settings = webView.getSettings(); 95 webView.loadDataWithBaseURL(baseUri, html, 102 webView.createPrintDocumentAdapter(),
|
/external/chromium_org/third_party/WebKit/Source/web/ |
PopupContainer.cpp | 393 // to window coordinates because the control could be in a transformed webview and then each point 470 WebViewImpl* webView = WebViewImpl::fromPage(m_frameView->frame().page()); 471 if (!webView->client()) 474 WebWidget* webwidget = webView->client()->createPopupMenu(WebPopupTypeSelect); 477 // We only notify when the WebView has to handle the popup, as when 479 // transparent to the WebView. 480 webView->popupOpened(this);
|
ChromeClientImpl.cpp | 121 ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView) 122 : m_webView(webView) 128 , m_pagePopupDriver(webView) 136 void* ChromeClientImpl::webView() const
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
ViewLoaderTest.java | 9 import android.webkit.WebView; 127 WebView webView = (WebView) view.findViewById(R.id.web_view); 129 webView.loadUrl("www.example.com"); 131 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("www.example.com"));
|
/packages/apps/Browser/src/com/android/browser/ |
Tab.java | 65 import android.webkit.WebView; 66 import android.webkit.WebView.PictureListener; 90 * Class for maintaining Tabs with a main WebView and a subwindow. 142 // Main WebView wrapper 144 // Main WebView 145 private WebView mMainView; 148 // Subwindow WebView 149 private WebView mSubView; 151 // information needed to restore the WebView if the user goes back to the 175 // Keep the original url around to avoid killing the old WebView if the ur [all...] |
/external/chromium_org/android_webview/renderer/ |
print_web_view_helper.cc | 43 #include "third_party/WebKit/public/web/WebView.h" 50 // modified to run it with webview, and the modifications are marked 414 blink::WebView* FrameReference::view() { 441 blink::WebView* web_view = blink::WebView::create(NULL); 623 blink::WebView* web_view = frame_.view(); 635 blink::WebView* web_view = frame_.view(); 659 // Create a new WebView with the same settings as the current display one. 666 blink::WebView* web_view = blink::WebView::create(this) [all...] |
/external/chromium_org/chrome/renderer/printing/ |
print_web_view_helper.cc | 46 #include "third_party/WebKit/public/web/WebView.h" 445 blink::WebView* FrameReference::view() { 470 blink::WebView* web_view = blink::WebView::create(NULL); 652 blink::WebView* web_view = frame_.view(); 664 blink::WebView* web_view = frame_.view(); 690 // Create a new WebView with the same settings as the current display one. 697 blink::WebView* web_view = blink::WebView::create(this); 715 // Don't call callback here, because it can delete |this| and WebView that i [all...] |