| 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/android/context_utils.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 void CompositedTouchHandleDrawable::DetachLayer() { | 174 void CompositedTouchHandleDrawable::DetachLayer() { |
| 175 layer_->RemoveFromParent(); | 175 layer_->RemoveFromParent(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void CompositedTouchHandleDrawable::UpdateLayerPosition() { | 178 void CompositedTouchHandleDrawable::UpdateLayerPosition() { |
| 179 layer_->SetPosition(origin_position_); | 179 layer_->SetPosition(origin_position_); |
| 180 } | 180 } |
| 181 | 181 |
| 182 // static | |
| 183 bool CompositedTouchHandleDrawable::RegisterHandleViewResources(JNIEnv* env) { | |
| 184 return RegisterNativesImpl(env); | |
| 185 } | |
| 186 | |
| 187 } // namespace content | 182 } // namespace content |
| OLD | NEW |