Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: chrome/browser/android/dom_distiller/distiller_ui_handle_android.cc

Issue 2883643002: Clean up ReaderMode OverlayPanel classes (Closed)
Patch Set: remove extra enum Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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; 15 using base::android::ScopedJavaLocalRef;
16 16
17 namespace dom_distiller { 17 namespace dom_distiller {
18 18
19 namespace android { 19 namespace android {
20 20
21 // static 21 // static
22 void DistillerUIHandleAndroid::OpenSettings( 22 void DistillerUIHandleAndroid::OpenSettings(
23 content::WebContents* web_contents) { 23 content::WebContents* web_contents) {
24 JNIEnv* env = base::android::AttachCurrentThread(); 24 JNIEnv* env = base::android::AttachCurrentThread();
25 Java_DomDistillerUIUtils_openSettings(env, 25 Java_DomDistillerUIUtils_openSettings(env,
26 web_contents->GetJavaWebContents()); 26 web_contents->GetJavaWebContents());
27 } 27 }
28 28
29 // static
30 void DistillerUIHandleAndroid::ClosePanel(bool animate) {
31 JNIEnv* env = base::android::AttachCurrentThread();
32 Java_DomDistillerUIUtils_closePanel(env, animate);
33 }
34
35 } // namespace android 29 } // namespace android
36 30
37 } // namespace dom_distiller 31 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698