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

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

Issue 11558039: Subrect snapshot support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added intersect of src_size to actual texture_size Created 8 years 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
11 #include "content/public/browser/navigation_controller.h" 11 #include "content/public/browser/navigation_controller.h"
12 12
13 namespace cc { 13 namespace cc {
14 class Layer; 14 class Layer;
15 } 15 }
16 16
17 namespace gfx { 17 namespace gfx {
18 class Rect;
18 class Size; 19 class Size;
19 } 20 }
20 21
21 namespace ui { 22 namespace ui {
22 class WindowAndroid; 23 class WindowAndroid;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 class WebContents; 27 class WebContents;
27 28
(...skipping 10 matching lines...) Expand all
38 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; 39 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
39 virtual base::android::ScopedJavaLocalRef<jobject> GetContainerViewDelegate() 40 virtual base::android::ScopedJavaLocalRef<jobject> GetContainerViewDelegate()
40 = 0; 41 = 0;
41 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; 42 virtual ui::WindowAndroid* GetWindowAndroid() const = 0;
42 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; 43 virtual scoped_refptr<cc::Layer> GetLayer() const = 0;
43 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; 44 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0;
44 virtual void OnWebPreferencesUpdated() = 0; 45 virtual void OnWebPreferencesUpdated() = 0;
45 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0; 46 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0;
46 virtual void ShowPastePopup(int x, int y) = 0; 47 virtual void ShowPastePopup(int x, int y) = 0;
47 virtual unsigned int GetScaledContentTexture(const gfx::Size& size) = 0; 48 virtual unsigned int GetScaledContentTexture(const gfx::Size& size) = 0;
49 virtual unsigned int GetScaledContentTexture(const gfx::Size& size,
50 const gfx::Rect& src_rect) = 0;
48 51
49 protected: 52 protected:
50 virtual ~ContentViewCore() {}; 53 virtual ~ContentViewCore() {};
51 }; 54 };
52 55
53 }; // namespace content 56 }; // namespace content
54 57
55 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW
« content/browser/android/content_view_core_impl.cc ('K') | « content/common/gpu/client/gl_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698