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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 372693003: [Android] Fix smart clip callback to include URI and title (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: really removed mSmartClipResultHandler Created 6 years, 5 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 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 18 matching lines...) Expand all
29 explicit WebContentsAndroid(WebContents* web_contents); 29 explicit WebContentsAndroid(WebContents* web_contents);
30 virtual ~WebContentsAndroid(); 30 virtual ~WebContentsAndroid();
31 31
32 WebContents* web_contents() const { return web_contents_; } 32 WebContents* web_contents() const { return web_contents_; }
33 33
34 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); 34 base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
35 35
36 // Methods called from Java 36 // Methods called from Java
37 base::android::ScopedJavaLocalRef<jstring> GetTitle(JNIEnv* env, 37 base::android::ScopedJavaLocalRef<jstring> GetTitle(JNIEnv* env,
38 jobject obj) const; 38 jobject obj) const;
39 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL(JNIEnv* env,
40 jobject obj) const;
39 void Stop(JNIEnv* env, jobject obj); 41 void Stop(JNIEnv* env, jobject obj);
40 42
41 private: 43 private:
42 WebContents* web_contents_; 44 WebContents* web_contents_;
43 NavigationControllerAndroid navigation_controller_; 45 NavigationControllerAndroid navigation_controller_;
44 base::android::ScopedJavaGlobalRef<jobject> obj_; 46 base::android::ScopedJavaGlobalRef<jobject> obj_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 48 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
47 }; 49 };
48 50
49 } // namespace content 51 } // namespace content
50 52
51 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 53 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698