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

Side by Side Diff: blimp/client/core/contents/android/blimp_view.cc

Issue 2382733007: Add BlimpDocument, pull out functions in BlimpCompositor. (Closed)
Patch Set: Remove Webkit DEPS modification. Created 4 years, 2 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
« no previous file with comments | « blimp/client/core/contents/BUILD.gn ('k') | blimp/client/core/contents/blimp_contents_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/core/contents/android/blimp_view.h" 5 #include "blimp/client/core/contents/android/blimp_view.h"
6 6
7 #include "blimp/client/core/compositor/blimp_compositor_manager.h"
8 #include "blimp/client/core/contents/blimp_contents_impl.h" 7 #include "blimp/client/core/contents/blimp_contents_impl.h"
9 #include "jni/BlimpView_jni.h" 8 #include "jni/BlimpView_jni.h"
10 #include "ui/android/window_android.h" 9 #include "ui/android/window_android.h"
11 #include "ui/events/android/motion_event_android.h" 10 #include "ui/events/android/motion_event_android.h"
12 11
13 namespace blimp { 12 namespace blimp {
14 namespace client { 13 namespace client {
15 14
16 // static 15 // static
17 bool BlimpView::RegisterJni(JNIEnv* env) { 16 bool BlimpView::RegisterJni(JNIEnv* env) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ui::MotionEventAndroid event( 90 ui::MotionEventAndroid event(
92 1.f / device_scale_factor_dp_to_px, env, motion_event, time_ms, 91 1.f / device_scale_factor_dp_to_px, env, motion_event, time_ms,
93 android_action, pointer_count, history_size, action_index, 92 android_action, pointer_count, history_size, action_index,
94 android_button_state, android_meta_state, raw_pos_x - pos_x_0, 93 android_button_state, android_meta_state, raw_pos_x - pos_x_0,
95 raw_pos_y - pos_y_0, pointer0, pointer1); 94 raw_pos_y - pos_y_0, pointer0, pointer1);
96 return blimp_contents_view_->OnTouchEvent(event); 95 return blimp_contents_view_->OnTouchEvent(event);
97 } 96 }
98 97
99 } // namespace client 98 } // namespace client
100 } // namespace blimp 99 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/contents/BUILD.gn ('k') | blimp/client/core/contents/blimp_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698