Chromium Code Reviews| Index: ui/android/event_handler.cc |
| diff --git a/ui/android/event_handler.cc b/ui/android/event_handler.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b067a182590b22eaf55d486bb9115907af08f632 |
| --- /dev/null |
| +++ b/ui/android/event_handler.cc |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ui/android/event_handler.h" |
| + |
| +#include "base/android/scoped_java_ref.h" |
| +#include "jni/EventHandler_jni.h" |
| +#include "ui/android/view_android.h" |
| + |
| +using base::android::JavaParamRef; |
| + |
| +namespace ui { |
| + |
| +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.
|
| + const JavaParamRef<jclass>& jcaller, |
| + jlong native_view, |
| + int width, |
| + int height) { |
| + ViewAndroid* view_android = reinterpret_cast<ViewAndroid*>(native_view); |
| + view_android->OnPhysicalBackingSizeChanged(width, height); |
| +} |
| + |
| +bool RegisterEventHandler(JNIEnv* env) { |
| + return RegisterNativesImpl(env); |
| +} |
|
boliu
2016/12/06 00:34:14
nit: blank line below
Jinsuk Kim
2016/12/06 07:35:07
Done.
|
| +} // namespace content |