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/android/shell_manager.h" | 5 #include "content/shell/android/shell_manager.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 void LaunchShell(JNIEnv* env, jclass clazz, jstring jurl) { | 51 void LaunchShell(JNIEnv* env, jclass clazz, jstring jurl) { |
52 ShellBrowserContext* browserContext = | 52 ShellBrowserContext* browserContext = |
53 static_cast<ShellContentBrowserClient*>( | 53 static_cast<ShellContentBrowserClient*>( |
54 GetContentClient()->browser())->browser_context(); | 54 GetContentClient()->browser())->browser_context(); |
55 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); | 55 GURL url(base::android::ConvertJavaStringToUTF8(env, jurl)); |
56 Shell::CreateNewWindow(browserContext, | 56 Shell::CreateNewWindow(browserContext, |
57 url, | 57 url, |
58 NULL, | 58 NULL, |
59 MSG_ROUTING_NONE, | 59 MSG_ROUTING_NONE, |
60 NULL); | 60 gfx::Size()); |
61 } | 61 } |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
OLD | NEW |