| 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" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/string_piece.h" | 13 #include "base/string_piece.h" |
| 14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #include "content/shell/android/shell_manager.h" | 15 #include "content/shell/android/shell_manager.h" |
| 16 #include "jni/Shell_jni.h" | 16 #include "jni/Shell_jni.h" |
| 17 | 17 |
| 18 using base::android::AttachCurrentThread; | 18 using base::android::AttachCurrentThread; |
| 19 using base::android::ConvertUTF8ToJavaString; | 19 using base::android::ConvertUTF8ToJavaString; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 base::StringPiece Shell::PlatformResourceProvider(int key) { | |
| 24 return base::StringPiece(); | |
| 25 } | |
| 26 | |
| 27 void Shell::PlatformInitialize() { | 23 void Shell::PlatformInitialize() { |
| 28 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 24 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 29 DCHECK(command_line->HasSwitch(switches::kForceCompositingMode)); | 25 DCHECK(command_line->HasSwitch(switches::kForceCompositingMode)); |
| 30 DCHECK(command_line->HasSwitch(switches::kEnableThreadedCompositing)); | 26 DCHECK(command_line->HasSwitch(switches::kEnableThreadedCompositing)); |
| 31 } | 27 } |
| 32 | 28 |
| 33 void Shell::PlatformCleanUp() { | 29 void Shell::PlatformCleanUp() { |
| 34 } | 30 } |
| 35 | 31 |
| 36 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { | 32 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // TODO(tedchoc): Implement Close method for android shell | 69 // TODO(tedchoc): Implement Close method for android shell |
| 74 NOTIMPLEMENTED(); | 70 NOTIMPLEMENTED(); |
| 75 } | 71 } |
| 76 | 72 |
| 77 // static | 73 // static |
| 78 bool Shell::Register(JNIEnv* env) { | 74 bool Shell::Register(JNIEnv* env) { |
| 79 return RegisterNativesImpl(env); | 75 return RegisterNativesImpl(env); |
| 80 } | 76 } |
| 81 | 77 |
| 82 } // namespace content | 78 } // namespace content |
| OLD | NEW |