OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/dom_distiller/distiller_ui_handle_android.h" | 5 #include "chrome/browser/android/dom_distiller/distiller_ui_handle_android.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "chrome/browser/ui/android/view_android_helper.h" | 8 #include "chrome/browser/ui/android/view_android_helper.h" |
9 #include "components/dom_distiller/core/url_utils.h" | 9 #include "components/dom_distiller/core/url_utils.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 Java_DomDistillerUIUtils_openSettings(env, | 39 Java_DomDistillerUIUtils_openSettings(env, |
40 web_contents->GetJavaWebContents().obj()); | 40 web_contents->GetJavaWebContents().obj()); |
41 } | 41 } |
42 | 42 |
43 // static | 43 // static |
44 void DistillerUIHandleAndroid::ClosePanel(bool animate) { | 44 void DistillerUIHandleAndroid::ClosePanel(bool animate) { |
45 JNIEnv* env = base::android::AttachCurrentThread(); | 45 JNIEnv* env = base::android::AttachCurrentThread(); |
46 Java_DomDistillerUIUtils_closePanel(env, animate); | 46 Java_DomDistillerUIUtils_closePanel(env, animate); |
47 } | 47 } |
48 | 48 |
49 // static | |
50 bool RegisterUIHandle(JNIEnv* env) { | |
51 return RegisterNativesImpl(env); | |
52 } | |
53 | |
54 } // namespace android | 49 } // namespace android |
55 | 50 |
56 } // namespace dom_distiller | 51 } // namespace dom_distiller |
OLD | NEW |