| OLD | NEW |
| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 void Shell::PlatformResizeSubViews() { | 55 void Shell::PlatformResizeSubViews() { |
| 56 // Not needed; subviews are bound. | 56 // Not needed; subviews are bound. |
| 57 } | 57 } |
| 58 | 58 |
| 59 void Shell::PlatformSetTitle(const string16& title) { | 59 void Shell::PlatformSetTitle(const string16& title) { |
| 60 NOTIMPLEMENTED(); | 60 NOTIMPLEMENTED(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void Shell::LoadProgressChanged(double progress) { | 63 void Shell::LoadProgressChanged(WebContents* source, 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) { | 73 void Shell::AttachLayer(WebContents* web_contents, WebKit::WebLayer* layer) { |
| 74 ShellAttachLayer(layer); | 74 ShellAttachLayer(layer); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void Shell::RemoveLayer(WebContents* web_contents, WebKit::WebLayer* layer) { | 77 void Shell::RemoveLayer(WebContents* web_contents, WebKit::WebLayer* layer) { |
| 78 ShellRemoveLayer(layer); | 78 ShellRemoveLayer(layer); |
| 79 } | 79 } |
| 80 | 80 |
| 81 // static | 81 // static |
| 82 bool Shell::Register(JNIEnv* env) { | 82 bool Shell::Register(JNIEnv* env) { |
| 83 return RegisterNativesImpl(env); | 83 return RegisterNativesImpl(env); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace content | 86 } // namespace content |
| OLD | NEW |