OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ | 5 #ifndef BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ |
6 #define BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ | 6 #define BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Size; | 14 class Size; |
15 } | 15 } |
16 | 16 |
17 namespace blimp { | 17 namespace blimp { |
| 18 namespace client { |
18 | 19 |
19 class BlimpCompositorAndroid; | 20 class BlimpCompositorAndroid; |
20 class RenderWidgetFeature; | 21 class RenderWidgetFeature; |
21 | 22 |
22 // The native component of org.chromium.blimp.BlimpView. This builds and | 23 // The native component of org.chromium.blimp.BlimpView. This builds and |
23 // maintains a BlimpCompositorAndroid and handles notifying the compositor of | 24 // maintains a BlimpCompositorAndroid and handles notifying the compositor of |
24 // SurfaceView surface changes (size, creation, destruction, etc.). | 25 // SurfaceView surface changes (size, creation, destruction, etc.). |
25 class BlimpView { | 26 class BlimpView { |
26 public: | 27 public: |
27 static bool RegisterJni(JNIEnv* env); | 28 static bool RegisterJni(JNIEnv* env); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 // The format of the current surface owned by |compositor_|. See | 101 // The format of the current surface owned by |compositor_|. See |
101 // android.graphics.PixelFormat.java. | 102 // android.graphics.PixelFormat.java. |
102 int current_surface_format_; | 103 int current_surface_format_; |
103 | 104 |
104 gfx::AcceleratedWidget window_; | 105 gfx::AcceleratedWidget window_; |
105 | 106 |
106 DISALLOW_COPY_AND_ASSIGN(BlimpView); | 107 DISALLOW_COPY_AND_ASSIGN(BlimpView); |
107 }; | 108 }; |
108 | 109 |
| 110 } // namespace client |
109 } // namespace blimp | 111 } // namespace blimp |
110 | 112 |
111 #endif // BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ | 113 #endif // BLIMP_CLIENT_ANDROID_BLIMP_VIEW_H_ |
OLD | NEW |