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

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 10869073: Split user agent code out of the 'glue' target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 8 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
« no previous file with comments | « content/browser/android/content_settings.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 16 matching lines...) Expand all
27 #include "content/public/browser/notification_source.h" 27 #include "content/public/browser/notification_source.h"
28 #include "content/public/browser/notification_types.h" 28 #include "content/public/browser/notification_types.h"
29 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
30 #include "content/public/common/content_client.h" 30 #include "content/public/common/content_client.h"
31 #include "content/public/common/page_transition_types.h" 31 #include "content/public/common/page_transition_types.h"
32 #include "jni/ContentViewCore_jni.h" 32 #include "jni/ContentViewCore_jni.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/android/WebInputEvent Factory.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/android/WebInputEvent Factory.h"
36 #include "ui/gfx/android/java_bitmap.h" 36 #include "ui/gfx/android/java_bitmap.h"
37 #include "webkit/glue/user_agent.h"
38 #include "webkit/glue/webmenuitem.h" 37 #include "webkit/glue/webmenuitem.h"
38 #include "webkit/user_agent/user_agent_util.h"
39 39
40 using base::android::AttachCurrentThread; 40 using base::android::AttachCurrentThread;
41 using base::android::ConvertJavaStringToUTF16; 41 using base::android::ConvertJavaStringToUTF16;
42 using base::android::ConvertJavaStringToUTF8; 42 using base::android::ConvertJavaStringToUTF8;
43 using base::android::ConvertUTF16ToJavaString; 43 using base::android::ConvertUTF16ToJavaString;
44 using base::android::ConvertUTF8ToJavaString; 44 using base::android::ConvertUTF8ToJavaString;
45 using base::android::GetClass; 45 using base::android::GetClass;
46 using base::android::HasField; 46 using base::android::HasField;
47 using base::android::JavaByteArrayToByteVector; 47 using base::android::JavaByteArrayToByteVector;
48 using base::android::ScopedJavaGlobalRef; 48 using base::android::ScopedJavaGlobalRef;
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 if (!HasField(env, clazz, "mNativeContentViewCore", "I")) { 708 if (!HasField(env, clazz, "mNativeContentViewCore", "I")) {
709 DLOG(ERROR) << "Unable to find ContentView.mNativeContentViewCore!"; 709 DLOG(ERROR) << "Unable to find ContentView.mNativeContentViewCore!";
710 return false; 710 return false;
711 } 711 }
712 g_native_content_view = GetFieldID(env, clazz, "mNativeContentViewCore", "I"); 712 g_native_content_view = GetFieldID(env, clazz, "mNativeContentViewCore", "I");
713 713
714 return RegisterNativesImpl(env) >= 0; 714 return RegisterNativesImpl(env) >= 0;
715 } 715 }
716 716
717 } // namespace content 717 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_settings.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698