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

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 23453011: [Android WebView] Disable disambiguation popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update TAP_MULTIPLE_TARGETS_STRATEGY_MAX Created 7 years, 3 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 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
10 #include "android_webview/browser/in_process_view_renderer.h" 10 #include "android_webview/browser/in_process_view_renderer.h"
(...skipping 25 matching lines...) Expand all
36 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 36 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
37 #include "components/navigation_interception/intercept_navigation_delegate.h" 37 #include "components/navigation_interception/intercept_navigation_delegate.h"
38 #include "content/public/browser/android/content_view_core.h" 38 #include "content/public/browser/android/content_view_core.h"
39 #include "content/public/browser/browser_thread.h" 39 #include "content/public/browser/browser_thread.h"
40 #include "content/public/browser/cert_store.h" 40 #include "content/public/browser/cert_store.h"
41 #include "content/public/browser/favicon_status.h" 41 #include "content/public/browser/favicon_status.h"
42 #include "content/public/browser/navigation_entry.h" 42 #include "content/public/browser/navigation_entry.h"
43 #include "content/public/browser/render_process_host.h" 43 #include "content/public/browser/render_process_host.h"
44 #include "content/public/browser/render_view_host.h" 44 #include "content/public/browser/render_view_host.h"
45 #include "content/public/browser/web_contents.h" 45 #include "content/public/browser/web_contents.h"
46 #include "content/public/common/renderer_preferences.h"
46 #include "content/public/common/ssl_status.h" 47 #include "content/public/common/ssl_status.h"
47 #include "jni/AwContents_jni.h" 48 #include "jni/AwContents_jni.h"
48 #include "net/cert/x509_certificate.h" 49 #include "net/cert/x509_certificate.h"
49 #include "third_party/skia/include/core/SkPicture.h" 50 #include "third_party/skia/include/core/SkPicture.h"
50 #include "ui/base/l10n/l10n_util_android.h" 51 #include "ui/base/l10n/l10n_util_android.h"
51 #include "ui/gfx/android/java_bitmap.h" 52 #include "ui/gfx/android/java_bitmap.h"
52 #include "ui/gfx/image/image.h" 53 #include "ui/gfx/image/image.h"
53 54
54 struct AwDrawSWFunctionTable; 55 struct AwDrawSWFunctionTable;
55 struct AwDrawGLFunctionTable; 56 struct AwDrawGLFunctionTable;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 icon_helper_->SetListener(this); 139 icon_helper_->SetListener(this);
139 web_contents_->SetUserData(kAwContentsUserDataKey, 140 web_contents_->SetUserData(kAwContentsUserDataKey,
140 new AwContentsUserData(this)); 141 new AwContentsUserData(this));
141 render_view_host_ext_.reset( 142 render_view_host_ext_.reset(
142 new AwRenderViewHostExt(this, web_contents_.get())); 143 new AwRenderViewHostExt(this, web_contents_.get()));
143 144
144 AwAutofillManagerDelegate* autofill_manager_delegate = 145 AwAutofillManagerDelegate* autofill_manager_delegate =
145 AwAutofillManagerDelegate::FromWebContents(web_contents_.get()); 146 AwAutofillManagerDelegate::FromWebContents(web_contents_.get());
146 if (autofill_manager_delegate) 147 if (autofill_manager_delegate)
147 InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData()); 148 InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData());
149
150 web_contents_->GetMutableRendererPrefs()->tap_multiple_targets_strategy =
151 content::TAP_MULTIPLE_TARGETS_STRATEGY_NONE;
joth 2013/08/28 03:03:03 GetMutableRendererPrefs - u my new best friend.
148 } 152 }
149 153
150 void AwContents::SetJavaPeers(JNIEnv* env, 154 void AwContents::SetJavaPeers(JNIEnv* env,
151 jobject obj, 155 jobject obj,
152 jobject aw_contents, 156 jobject aw_contents,
153 jobject web_contents_delegate, 157 jobject web_contents_delegate,
154 jobject contents_client_bridge, 158 jobject contents_client_bridge,
155 jobject io_thread_client, 159 jobject io_thread_client,
156 jobject intercept_navigation_delegate) { 160 jobject intercept_navigation_delegate) {
157 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 161 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 browser_view_renderer_->CapturePicture(width, height))); 778 browser_view_renderer_->CapturePicture(width, height)));
775 } 779 }
776 780
777 void AwContents::EnableOnNewPicture(JNIEnv* env, 781 void AwContents::EnableOnNewPicture(JNIEnv* env,
778 jobject obj, 782 jobject obj,
779 jboolean enabled) { 783 jboolean enabled) {
780 browser_view_renderer_->EnableOnNewPicture(enabled); 784 browser_view_renderer_->EnableOnNewPicture(enabled);
781 } 785 }
782 786
783 } // namespace android_webview 787 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/public/common/renderer_preferences.h » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698