BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chromecast / base / cast_sys_info_android.h
blob0cc4b55ea04a3202232ddedcd0fb085f314dc182
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
6 #define CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_
8 #include <jni.h>
10 #include "base/macros.h"
11 #include "chromecast/public/cast_sys_info.h"
13 namespace base {
14 namespace android {
15 class BuildInfo;
19 namespace chromecast {
21 class CastSysInfoAndroid : public CastSysInfo {
22 public:
23 static bool RegisterJni(JNIEnv* env);
25 CastSysInfoAndroid();
26 ~CastSysInfoAndroid() override;
28 // CastSysInfo implementation:
29 BuildType GetBuildType() override;
30 std::string GetSerialNumber() override;
31 std::string GetProductName() override;
32 std::string GetDeviceModel() override;
33 std::string GetManufacturer() override;
34 std::string GetSystemBuildNumber() override;
35 std::string GetSystemReleaseChannel() override;
36 std::string GetBoardName() override;
37 std::string GetBoardRevision() override;
38 std::string GetFactoryCountry() override;
39 std::string GetFactoryLocale(std::string* second_locale) override;
40 std::string GetWifiInterface() override;
41 std::string GetApInterface() override;
42 std::string GetGlVendor() override;
43 std::string GetGlRenderer() override;
44 std::string GetGlVersion() override;
46 // Native implementation of Java methods.
47 void DeviceNameChanged(JNIEnv* env, jobject obj, jstring device_name);
49 private:
50 const base::android::BuildInfo* const build_info_;
52 DISALLOW_COPY_AND_ASSIGN(CastSysInfoAndroid);
55 } // namespace chromecast
57 #endif // CHROMECAST_BASE_CAST_SYS_INFO_ANDROID_H_