OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell.h" | 5 #include "content/shell/browser/shell.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 | 8 |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 RemoveShellView(java_object_.obj()); | 97 RemoveShellView(java_object_.obj()); |
98 delete this; | 98 delete this; |
99 } | 99 } |
100 | 100 |
101 // static | 101 // static |
102 bool Shell::Register(JNIEnv* env) { | 102 bool Shell::Register(JNIEnv* env) { |
103 return RegisterNativesImpl(env); | 103 return RegisterNativesImpl(env); |
104 } | 104 } |
105 | 105 |
106 // static | 106 // static |
107 void CloseShell(JNIEnv* env, jclass clazz, jlong shellPtr) { | 107 void CloseShell(JNIEnv* env, |
| 108 const JavaParamRef<jclass>& clazz, |
| 109 jlong shellPtr) { |
108 Shell* shell = reinterpret_cast<Shell*>(shellPtr); | 110 Shell* shell = reinterpret_cast<Shell*>(shellPtr); |
109 shell->Close(); | 111 shell->Close(); |
110 } | 112 } |
111 | 113 |
112 } // namespace content | 114 } // namespace content |
OLD | NEW |