| 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 "content/browser/android/composited_touch_handle_drawable.h" | 5 #include "content/browser/android/composited_touch_handle_drawable.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" |
| 7 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 9 #include "base/logging.h" |
| 9 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 10 #include "cc/layers/ui_resource_layer.h" | 11 #include "cc/layers/ui_resource_layer.h" |
| 11 #include "content/public/browser/android/compositor.h" | 12 #include "content/public/browser/android/compositor.h" |
| 12 #include "jni/HandleViewResources_jni.h" | 13 #include "jni/HandleViewResources_jni.h" |
| 13 #include "ui/gfx/android/java_bitmap.h" | 14 #include "ui/gfx/android/java_bitmap.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void CompositedTouchHandleDrawable::UpdateLayerPosition() { | 177 void CompositedTouchHandleDrawable::UpdateLayerPosition() { |
| 177 layer_->SetPosition(origin_position_); | 178 layer_->SetPosition(origin_position_); |
| 178 } | 179 } |
| 179 | 180 |
| 180 // static | 181 // static |
| 181 bool CompositedTouchHandleDrawable::RegisterHandleViewResources(JNIEnv* env) { | 182 bool CompositedTouchHandleDrawable::RegisterHandleViewResources(JNIEnv* env) { |
| 182 return RegisterNativesImpl(env); | 183 return RegisterNativesImpl(env); |
| 183 } | 184 } |
| 184 | 185 |
| 185 } // namespace content | 186 } // namespace content |
| OLD | NEW |