| 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 #include "ui/gfx/android/view_configuration.h" | 5 #include "ui/gfx/android/view_configuration.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" | 7 #include "base/android/context_utils.h" |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "jni/ViewConfigurationHelper_jni.h" | 12 #include "jni/ViewConfigurationHelper_jni.h" |
| 13 | 13 |
| 14 using base::android::AttachCurrentThread; | 14 using base::android::AttachCurrentThread; |
| 15 using base::android::GetApplicationContext; | 15 using base::android::GetApplicationContext; |
| 16 using base::android::JavaParamRef; |
| 16 | 17 |
| 17 namespace gfx { | 18 namespace gfx { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 struct ViewConfigurationData { | 22 struct ViewConfigurationData { |
| 22 ViewConfigurationData() | 23 ViewConfigurationData() |
| 23 : double_tap_timeout_in_ms_(0), | 24 : double_tap_timeout_in_ms_(0), |
| 24 long_press_timeout_in_ms_(0), | 25 long_press_timeout_in_ms_(0), |
| 25 tap_timeout_in_ms_(0), | 26 tap_timeout_in_ms_(0), |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 180 |
| 180 int ViewConfiguration::GetMinScalingSpanInDips() { | 181 int ViewConfiguration::GetMinScalingSpanInDips() { |
| 181 return g_view_configuration.Get().min_scaling_span_in_dips(); | 182 return g_view_configuration.Get().min_scaling_span_in_dips(); |
| 182 } | 183 } |
| 183 | 184 |
| 184 bool ViewConfiguration::RegisterViewConfiguration(JNIEnv* env) { | 185 bool ViewConfiguration::RegisterViewConfiguration(JNIEnv* env) { |
| 185 return RegisterNativesImpl(env); | 186 return RegisterNativesImpl(env); |
| 186 } | 187 } |
| 187 | 188 |
| 188 } // namespace gfx | 189 } // namespace gfx |
| OLD | NEW |