blob: 0644ed76cfdb04e067a67fd5e28888c25c709762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright 2015 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 "android_webview/native/aw_contents_lifecycle_notifier.h"
#include "jni/AwContentsLifecycleNotifier_jni.h"
using base::android::AttachCurrentThread;
namespace android_webview {
bool RegisterAwContentsLifecycleNotifier(JNIEnv* env) {
return RegisterNativesImpl(env);
}
// static
void AwContentsLifecycleNotifier::OnWebViewCreated() {
Java_AwContentsLifecycleNotifier_onWebViewCreated(AttachCurrentThread());
}
// static
void AwContentsLifecycleNotifier::OnWebViewDestroyed() {
Java_AwContentsLifecycleNotifier_onWebViewDestroyed(AttachCurrentThread());
}
} // namespace android_webview
|