Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: content/browser/web_contents/web_contents_android.cc

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the default transparent and started caching last sent Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698