| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 11 | 12 |
| 12 class PrefChangeRegistrar; | 13 class PrefChangeRegistrar; |
| 13 class PrefService; | 14 class PrefService; |
| 14 | 15 |
| 15 /* | 16 /* |
| 16 * Native implementation of FontSizePrefs. This class is used to get and set | 17 * Native implementation of FontSizePrefs. This class is used to get and set |
| 17 * FontScaleFactor and ForceEnableZoom. | 18 * FontScaleFactor and ForceEnableZoom. |
| 18 */ | 19 */ |
| 19 class FontSizePrefsAndroid { | 20 class FontSizePrefsAndroid { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 // FontSizePrefs::Observer implementation. | 78 // FontSizePrefs::Observer implementation. |
| 78 void OnChangeFontSize(float font) override; | 79 void OnChangeFontSize(float font) override; |
| 79 void OnChangeForceEnableZoom(bool enabled) override; | 80 void OnChangeForceEnableZoom(bool enabled) override; |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 base::android::ScopedJavaGlobalRef<jobject> java_ref_; | 83 base::android::ScopedJavaGlobalRef<jobject> java_ref_; |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ | 86 #endif // CHROME_BROWSER_ANDROID_ACCESSIBILITY_FONT_SIZE_PREFS_ANDROID_H_ |
| OLD | NEW |