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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 void Shell::PlatformSetTitle(const string16& title) { | 60 void Shell::PlatformSetTitle(const string16& title) { |
61 NOTIMPLEMENTED(); | 61 NOTIMPLEMENTED(); |
62 } | 62 } |
63 | 63 |
64 void Shell::LoadProgressChanged(WebContents* source, double progress) { | 64 void Shell::LoadProgressChanged(WebContents* source, double progress) { |
65 JNIEnv* env = AttachCurrentThread(); | 65 JNIEnv* env = AttachCurrentThread(); |
66 Java_Shell_onLoadProgressChanged(env, java_object_.obj(), progress); | 66 Java_Shell_onLoadProgressChanged(env, java_object_.obj(), progress); |
67 } | 67 } |
68 | 68 |
69 void Shell::ToggleFullscreenModeForTab(WebContents* web_contents, | 69 void Shell::PlatformToggleFullscreenModeForTab(WebContents* web_contents, |
70 bool enter_fullscreen) { | 70 bool enter_fullscreen) { |
71 JNIEnv* env = AttachCurrentThread(); | 71 JNIEnv* env = AttachCurrentThread(); |
72 Java_Shell_toggleFullscreenModeForTab( | 72 Java_Shell_toggleFullscreenModeForTab( |
73 env, java_object_.obj(), enter_fullscreen); | 73 env, java_object_.obj(), enter_fullscreen); |
74 } | 74 } |
75 | 75 |
76 bool Shell::IsFullscreenForTabOrPending(const WebContents* web_contents) const { | 76 bool Shell::PlatformIsFullscreenForTabOrPending( |
| 77 const WebContents* web_contents) const { |
77 JNIEnv* env = AttachCurrentThread(); | 78 JNIEnv* env = AttachCurrentThread(); |
78 return Java_Shell_isFullscreenForTabOrPending(env, java_object_.obj()); | 79 return Java_Shell_isFullscreenForTabOrPending(env, java_object_.obj()); |
79 } | 80 } |
80 | 81 |
81 void Shell::Close() { | 82 void Shell::Close() { |
82 // TODO(tedchoc): Implement Close method for android shell | 83 // TODO(tedchoc): Implement Close method for android shell |
83 NOTIMPLEMENTED(); | 84 NOTIMPLEMENTED(); |
84 } | 85 } |
85 | 86 |
86 // static | 87 // static |
87 bool Shell::Register(JNIEnv* env) { | 88 bool Shell::Register(JNIEnv* env) { |
88 return RegisterNativesImpl(env); | 89 return RegisterNativesImpl(env); |
89 } | 90 } |
90 | 91 |
91 } // namespace content | 92 } // namespace content |
OLD | NEW |