| 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 "chrome/browser/ui/android/infobars/infobar_container_android.h" | 5 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "chrome/browser/infobars/infobar_service.h" | 11 #include "chrome/browser/infobars/infobar_service.h" |
| 12 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 12 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
| 13 #include "components/infobars/core/infobar.h" | 13 #include "components/infobars/core/infobar.h" |
| 14 #include "components/infobars/core/infobar_delegate.h" | 14 #include "components/infobars/core/infobar_delegate.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "jni/InfoBarContainer_jni.h" | 16 #include "jni/InfoBarContainer_jni.h" |
| 17 | 17 |
| 18 using base::android::JavaParamRef; | 18 using base::android::JavaParamRef; |
| 19 | 19 |
| 20 // InfoBarContainerAndroid ---------------------------------------------------- | 20 // InfoBarContainerAndroid ---------------------------------------------------- |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 107 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 108 InfoBarContainerAndroid* infobar_container = | 108 InfoBarContainerAndroid* infobar_container = |
| 109 new InfoBarContainerAndroid(env, obj); | 109 new InfoBarContainerAndroid(env, obj); |
| 110 return reinterpret_cast<intptr_t>(infobar_container); | 110 return reinterpret_cast<intptr_t>(infobar_container); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool RegisterInfoBarContainer(JNIEnv* env) { | 113 bool RegisterInfoBarContainer(JNIEnv* env) { |
| 114 return RegisterNativesImpl(env); | 114 return RegisterNativesImpl(env); |
| 115 } | 115 } |
| OLD | NEW |