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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 368273008: [WebView] Fix issue with transparent background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void SetViewVisibility(JNIEnv* env, jobject obj, bool visible); 104 void SetViewVisibility(JNIEnv* env, jobject obj, bool visible);
105 void SetWindowVisibility(JNIEnv* env, jobject obj, bool visible); 105 void SetWindowVisibility(JNIEnv* env, jobject obj, bool visible);
106 void SetIsPaused(JNIEnv* env, jobject obj, bool paused); 106 void SetIsPaused(JNIEnv* env, jobject obj, bool paused);
107 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); 107 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h);
108 void OnDetachedFromWindow(JNIEnv* env, jobject obj); 108 void OnDetachedFromWindow(JNIEnv* env, jobject obj);
109 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( 109 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState(
110 JNIEnv* env, jobject obj); 110 JNIEnv* env, jobject obj);
111 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); 111 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state);
112 void FocusFirstNode(JNIEnv* env, jobject obj); 112 void FocusFirstNode(JNIEnv* env, jobject obj);
113 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color); 113 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color);
114 void SetHasTransparentBackground(JNIEnv* env, jobject obj, bool transparent);
115 bool OnDraw(JNIEnv* env, 114 bool OnDraw(JNIEnv* env,
116 jobject obj, 115 jobject obj,
117 jobject canvas, 116 jobject canvas,
118 jboolean is_hardware_accelerated, 117 jboolean is_hardware_accelerated,
119 jint scroll_x, 118 jint scroll_x,
120 jint scroll_y, 119 jint scroll_y,
121 jint visible_left, 120 jint visible_left,
122 jint visible_top, 121 jint visible_top,
123 jint visible_right, 122 jint visible_right,
124 jint visible_bottom, 123 jint visible_bottom,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 GLViewRendererManager::Key renderer_manager_key_; 261 GLViewRendererManager::Key renderer_manager_key_;
263 262
264 DISALLOW_COPY_AND_ASSIGN(AwContents); 263 DISALLOW_COPY_AND_ASSIGN(AwContents);
265 }; 264 };
266 265
267 bool RegisterAwContents(JNIEnv* env); 266 bool RegisterAwContents(JNIEnv* env);
268 267
269 } // namespace android_webview 268 } // namespace android_webview
270 269
271 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 270 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698