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

Side by Side Diff: ui/android/view_root.h

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: view_root.java_obj_... Created 3 years, 11 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 | « ui/android/view_android.cc ('k') | ui/android/view_root.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_ANDROID_VIEW_ROOT_H_
6 #define UI_ANDROID_VIEW_ROOT_H_
7
8 #include <jni.h>
9 #include <string>
10 #include <vector>
11
12 #include "base/android/jni_weak_ref.h"
13 #include "base/android/scoped_java_ref.h"
14 #include "base/macros.h"
15 #include "base/time/time.h"
16 #include "ui/android/ui_android_export.h"
17 #include "ui/android/view_android.h"
18 #include "ui/gfx/geometry/vector2d_f.h"
19
20 namespace ui {
21
22 // ViewRoot is the root of a ViewAndroid tree.
23 class UI_ANDROID_EXPORT ViewRoot : public ViewAndroid {
24 public:
25 explicit ViewRoot(jlong window_android_ptr);
26
27 void Destroy(JNIEnv* env,
28 const base::android::JavaParamRef<jobject>& obj);
29
30 // ViewAndroid overrides.
31 WindowAndroid* GetWindowAndroid() const override;
32 ViewAndroid* GetViewRoot() override;
33
34 void OnPhysicalBackingSizeChanged(
35 JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& jobj,
37 int width,
38 int height);
39
40 private:
41 WindowAndroid* window_;
42
43 DISALLOW_COPY_AND_ASSIGN(ViewRoot);
44 };
45
46 bool RegisterViewRoot(JNIEnv* env);
47
48 } // namespace ui
49
50 #endif // UI_ANDROID_VIEW_ROOT_H_
OLDNEW
« no previous file with comments | « ui/android/view_android.cc ('k') | ui/android/view_root.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698