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

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

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview tests Created 3 years, 8 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"
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
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
OLDNEW
« no previous file with comments | « content/browser/android/background_sync_network_observer_android.cc ('k') | content/browser/android/java_interfaces_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698