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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 12567020: [android] Resize the android_webview if it's 0x0 initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 21 matching lines...) Expand all
32 virtual void Invalidate() = 0; 32 virtual void Invalidate() = 0;
33 33
34 // Called when a new Picture is available. Needs to be enabled 34 // Called when a new Picture is available. Needs to be enabled
35 // via the EnableOnNewPicture method. 35 // via the EnableOnNewPicture method.
36 virtual void OnNewPicture( 36 virtual void OnNewPicture(
37 const base::android::JavaRef<jobject>& picture) = 0; 37 const base::android::JavaRef<jobject>& picture) = 0;
38 38
39 // Called to get view's absolute location on the screen. 39 // Called to get view's absolute location on the screen.
40 virtual gfx::Point GetLocationOnScreen() = 0; 40 virtual gfx::Point GetLocationOnScreen() = 0;
41 41
42 // Called when the RenderView page scale changes.
43 virtual void OnPageScaleFactorChanged(float page_scale_factor) = 0;
44
42 protected: 45 protected:
43 virtual ~Client() {} 46 virtual ~Client() {}
44 }; 47 };
45 48
46 // Delegate to perform rendering actions involving Java objects. 49 // Delegate to perform rendering actions involving Java objects.
47 class JavaHelper { 50 class JavaHelper {
48 public: 51 public:
49 // Creates a RGBA_8888 Java Bitmap object of the requested size. 52 // Creates a RGBA_8888 Java Bitmap object of the requested size.
50 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap( 53 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap(
51 JNIEnv* env, 54 JNIEnv* env,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual bool IsAttachedToWindow() = 0; 100 virtual bool IsAttachedToWindow() = 0;
98 virtual bool IsViewVisible() = 0; 101 virtual bool IsViewVisible() = 0;
99 virtual gfx::Rect GetScreenRect() = 0; 102 virtual gfx::Rect GetScreenRect() = 0;
100 103
101 virtual ~BrowserViewRenderer() {} 104 virtual ~BrowserViewRenderer() {}
102 }; 105 };
103 106
104 } // namespace android_webview 107 } // namespace android_webview
105 108
106 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 109 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698