Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / android / xwalk_view_delegate.cc
1 // Copyright (c) 2014 Intel Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "xwalk/runtime/browser/android/xwalk_view_delegate.h"
6
7 #include "base/android/jni_android.h"
8 #include "build/build_config.h"
9 #include "jni/XWalkViewDelegate_jni.h"
10
11 namespace xwalk {
12
13 jboolean IsLibraryBuiltForIA(JNIEnv* env, jclass jcaller) {
14 #if defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)
15   return JNI_TRUE;
16 #else
17   return JNI_FALSE;
18 #endif
19 }
20
21 bool RegisterXWalkViewDelegate(JNIEnv* env) {
22   return RegisterNativesImpl(env);
23 }
24
25 }  // namespace xwalk