OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium 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 "ui/android/event_handler.h" | |
6 | |
7 #include "base/android/scoped_java_ref.h" | |
8 #include "jni/EventHandler_jni.h" | |
9 #include "ui/android/view_android.h" | |
10 | |
11 using base::android::JavaParamRef; | |
12 | |
13 namespace ui { | |
14 | |
15 void OnPhysicalBackingSizeChanged(JNIEnv* env, | |
boliu
2016/12/06 00:34:14
is this static in the generated header? if so, add
Jinsuk Kim
2016/12/06 07:35:07
Yes it has static. Put it here too.
| |
16 const JavaParamRef<jclass>& jcaller, | |
17 jlong native_view, | |
18 int width, | |
19 int height) { | |
20 ViewAndroid* view_android = reinterpret_cast<ViewAndroid*>(native_view); | |
21 view_android->OnPhysicalBackingSizeChanged(width, height); | |
22 } | |
23 | |
24 bool RegisterEventHandler(JNIEnv* env) { | |
25 return RegisterNativesImpl(env); | |
26 } | |
boliu
2016/12/06 00:34:14
nit: blank line below
Jinsuk Kim
2016/12/06 07:35:07
Done.
| |
27 } // namespace content | |
OLD | NEW |