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" |
11 #include "jni/DomDistillerUIUtils_jni.h" | 11 #include "jni/DomDistillerUIUtils_jni.h" |
12 #include "ui/android/window_android.h" | 12 #include "ui/android/window_android.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
| 15 using base::android::ScopedJavaLocalRef; |
| 16 |
15 namespace dom_distiller { | 17 namespace dom_distiller { |
16 | 18 |
17 namespace android { | 19 namespace android { |
18 | 20 |
19 // static | 21 // static |
20 void DistillerUIHandleAndroid::ReportExternalFeedback( | 22 void DistillerUIHandleAndroid::ReportExternalFeedback( |
21 content::WebContents* web_contents, | 23 content::WebContents* web_contents, |
22 const GURL& url, | 24 const GURL& url, |
23 const bool good) { | 25 const bool good) { |
24 if (!web_contents) | 26 if (!web_contents) |
(...skipping 17 matching lines...) Expand all Loading... |
42 | 44 |
43 // static | 45 // static |
44 void DistillerUIHandleAndroid::ClosePanel(bool animate) { | 46 void DistillerUIHandleAndroid::ClosePanel(bool animate) { |
45 JNIEnv* env = base::android::AttachCurrentThread(); | 47 JNIEnv* env = base::android::AttachCurrentThread(); |
46 Java_DomDistillerUIUtils_closePanel(env, animate); | 48 Java_DomDistillerUIUtils_closePanel(env, animate); |
47 } | 49 } |
48 | 50 |
49 } // namespace android | 51 } // namespace android |
50 | 52 |
51 } // namespace dom_distiller | 53 } // namespace dom_distiller |
OLD | NEW |