| 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" | |
| 8 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 8 #include "base/logging.h" |
| 10 #include "base/macros.h" | 9 #include "base/macros.h" |
| 11 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 12 #include "cc/layers/ui_resource_layer.h" | 11 #include "cc/layers/ui_resource_layer.h" |
| 13 #include "content/public/browser/android/compositor.h" | 12 #include "content/public/browser/android/compositor.h" |
| 14 #include "jni/HandleViewResources_jni.h" | 13 #include "jni/HandleViewResources_jni.h" |
| 15 #include "ui/gfx/android/java_bitmap.h" | 14 #include "ui/gfx/android/java_bitmap.h" |
| 16 | 15 |
| 17 using base::android::JavaRef; | 16 using base::android::JavaRef; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 172 |
| 174 void CompositedTouchHandleDrawable::DetachLayer() { | 173 void CompositedTouchHandleDrawable::DetachLayer() { |
| 175 layer_->RemoveFromParent(); | 174 layer_->RemoveFromParent(); |
| 176 } | 175 } |
| 177 | 176 |
| 178 void CompositedTouchHandleDrawable::UpdateLayerPosition() { | 177 void CompositedTouchHandleDrawable::UpdateLayerPosition() { |
| 179 layer_->SetPosition(origin_position_); | 178 layer_->SetPosition(origin_position_); |
| 180 } | 179 } |
| 181 | 180 |
| 182 } // namespace content | 181 } // namespace content |
| OLD | NEW |