OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/web_contents/web_contents_android.h" | 5 #include "content/browser/web_contents/web_contents_android.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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 ConvertJavaStringToUTF8(env, message))); | 488 ConvertJavaStringToUTF8(env, message))); |
489 } | 489 } |
490 | 490 |
491 jboolean WebContentsAndroid::HasAccessedInitialDocument( | 491 jboolean WebContentsAndroid::HasAccessedInitialDocument( |
492 JNIEnv* env, | 492 JNIEnv* env, |
493 jobject jobj) { | 493 jobject jobj) { |
494 return static_cast<content::WebContentsImpl*>(web_contents_)-> | 494 return static_cast<content::WebContentsImpl*>(web_contents_)-> |
495 HasAccessedInitialDocument(); | 495 HasAccessedInitialDocument(); |
496 } | 496 } |
497 | 497 |
| 498 jint WebContentsAndroid::GetThemeColor(JNIEnv* env, jobject obj) { |
| 499 return web_contents_->GetThemeColor(); |
| 500 } |
| 501 |
498 } // namespace content | 502 } // namespace content |
OLD | NEW |