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

Side by Side Diff: content/shell/shell_android.cc

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/shell/shell.h ('k') | no next file » | 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) 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 #include "content/shell/shell.h" 5 #include "content/shell/shell.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void Shell::LoadProgressChanged(double progress) { 63 void Shell::LoadProgressChanged(double progress) {
64 JNIEnv* env = AttachCurrentThread(); 64 JNIEnv* env = AttachCurrentThread();
65 Java_Shell_onLoadProgressChanged(env, java_object_.obj(), progress); 65 Java_Shell_onLoadProgressChanged(env, java_object_.obj(), progress);
66 } 66 }
67 67
68 void Shell::Close() { 68 void Shell::Close() {
69 // TODO(tedchoc): Implement Close method for android shell 69 // TODO(tedchoc): Implement Close method for android shell
70 NOTIMPLEMENTED(); 70 NOTIMPLEMENTED();
71 } 71 }
72 72
73 void Shell::AttachLayer(WebContents* web_contents, WebKit::WebLayer* layer) {
74 ShellAttachLayer(layer);
75 }
76
77 void Shell::RemoveLayer(WebContents* web_contents, WebKit::WebLayer* layer) {
78 ShellRemoveLayer(layer);
79 }
80
73 // static 81 // static
74 bool Shell::Register(JNIEnv* env) { 82 bool Shell::Register(JNIEnv* env) {
75 return RegisterNativesImpl(env); 83 return RegisterNativesImpl(env);
76 } 84 }
77 85
78 } // namespace content 86 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698