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

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

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Caching on web_contents_impl now 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 jstring script, 106 jstring script,
107 jobject callback); 107 jobject callback);
108 108
109 void AddMessageToDevToolsConsole(JNIEnv* env, 109 void AddMessageToDevToolsConsole(JNIEnv* env,
110 jobject jobj, 110 jobject jobj,
111 jint level, 111 jint level,
112 jstring message); 112 jstring message);
113 113
114 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj); 114 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj);
115 115
116 jint GetThemeColor(JNIEnv* env, jobject obj);
117
116 private: 118 private:
117 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 119 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
118 120
119 WebContents* web_contents_; 121 WebContents* web_contents_;
120 NavigationControllerAndroid navigation_controller_; 122 NavigationControllerAndroid navigation_controller_;
121 base::android::ScopedJavaGlobalRef<jobject> obj_; 123 base::android::ScopedJavaGlobalRef<jobject> obj_;
122 124
123 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 125 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 127 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
126 }; 128 };
127 129
128 } // namespace content 130 } // namespace content
129 131
130 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 132 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.cc » ('j') | content/browser/web_contents/web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698