Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: content/browser/android/composited_touch_handle_drawable.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698