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

Side by Side Diff: content/public/browser/android/content_view_core.h

Issue 10913277: Upstream ContentViewCore.pageUp/pageDown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply feedback from comments Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include <jni.h> 9 #include <jni.h>
10 10
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 virtual void Destroy(JNIEnv* env, jobject obj) = 0; 34 virtual void Destroy(JNIEnv* env, jobject obj) = 0;
35 virtual content::WebContents* GetWebContents() const = 0; 35 virtual content::WebContents* GetWebContents() const = 0;
36 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; 36 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
37 virtual ui::WindowAndroid* GetWindowAndroid() = 0; 37 virtual ui::WindowAndroid* GetWindowAndroid() = 0;
38 38
39 static ContentViewCore* Create( 39 static ContentViewCore* Create(
40 JNIEnv* env, jobject obj, WebContents* web_contents); 40 JNIEnv* env, jobject obj, WebContents* web_contents);
41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj); 41 static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj);
42 42
43 virtual void UpdateContentSize(int width, int height) = 0;
Ted C 2012/09/21 00:29:48 are these called from outside of the content packa
Ramya 2012/09/21 01:12:43 Done.
44
45 virtual void UpdateScrollOffsetAndPageScaleFactor(
46 int x, int y, float scale) = 0;
47
43 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; 48 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0;
44 49
45 protected: 50 protected:
46 virtual ~ContentViewCore() {}; 51 virtual ~ContentViewCore() {};
47 }; 52 };
48 53
49 }; // namespace content 54 }; // namespace content
50 55
51 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 56 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698