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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 2496183002: Use GetDefaultLocaleListString for returning LocaleList (Closed)
Patch Set: change locales to localelist in AWContents.java Created 4 years, 1 month 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 (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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 public: 69 public:
70 // Returns the AwContents instance associated with |web_contents|, or NULL. 70 // Returns the AwContents instance associated with |web_contents|, or NULL.
71 static AwContents* FromWebContents(content::WebContents* web_contents); 71 static AwContents* FromWebContents(content::WebContents* web_contents);
72 72
73 // Returns the AwContents instance associated with with the given 73 // Returns the AwContents instance associated with with the given
74 // render_process_id and render_view_id, or NULL. 74 // render_process_id and render_view_id, or NULL.
75 static AwContents* FromID(int render_process_id, int render_view_id); 75 static AwContents* FromID(int render_process_id, int render_view_id);
76 76
77 static std::string GetLocale(); 77 static std::string GetLocale();
78 78
79 static std::string GetLocaleList();
80
79 AwContents(std::unique_ptr<content::WebContents> web_contents); 81 AwContents(std::unique_ptr<content::WebContents> web_contents);
80 ~AwContents() override; 82 ~AwContents() override;
81 83
82 AwRenderViewHostExt* render_view_host_ext() { 84 AwRenderViewHostExt* render_view_host_ext() {
83 return render_view_host_ext_.get(); 85 return render_view_host_ext_.get();
84 } 86 }
85 87
86 // |handler| is an instance of 88 // |handler| is an instance of
87 // org.chromium.android_webview.AwHttpAuthHandler. 89 // org.chromium.android_webview.AwHttpAuthHandler.
88 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, 90 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 GLViewRendererManager::Key renderer_manager_key_; 373 GLViewRendererManager::Key renderer_manager_key_;
372 374
373 DISALLOW_COPY_AND_ASSIGN(AwContents); 375 DISALLOW_COPY_AND_ASSIGN(AwContents);
374 }; 376 };
375 377
376 bool RegisterAwContents(JNIEnv* env); 378 bool RegisterAwContents(JNIEnv* env);
377 379
378 } // namespace android_webview 380 } // namespace android_webview
379 381
380 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 382 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698