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 CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ |
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/android/jni_weak_ref.h" | 12 #include "base/android/jni_weak_ref.h" |
13 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "chrome/browser/android/compositor/scene_layer/scene_layer.h" | 16 #include "chrome/browser/android/compositor/scene_layer/scene_layer.h" |
17 #include "ui/gfx/geometry/point.h" | 17 #include "ui/gfx/geometry/point.h" |
18 #include "ui/gfx/geometry/point_f.h" | 18 #include "ui/gfx/geometry/point_f.h" |
19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
20 #include "ui/gfx/geometry/size_f.h" | 20 #include "ui/gfx/geometry/size_f.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 class Layer; | 23 class Layer; |
24 } | 24 } |
25 | 25 |
26 namespace android { | 26 namespace android { |
27 | 27 |
28 class ContentLayer; | 28 class ContentLayer; |
29 class ToolbarLayer; | |
30 | 29 |
31 // A SceneLayer to render a static tab. | 30 // A SceneLayer to render a static tab. |
32 class StaticTabSceneLayer : public SceneLayer { | 31 class StaticTabSceneLayer : public SceneLayer { |
33 public: | 32 public: |
34 StaticTabSceneLayer(JNIEnv* env, jobject jobj); | 33 StaticTabSceneLayer(JNIEnv* env, jobject jobj); |
35 ~StaticTabSceneLayer() override; | 34 ~StaticTabSceneLayer() override; |
36 | 35 |
37 bool ShouldShowBackground() override; | 36 bool ShouldShowBackground() override; |
38 SkColor GetBackgroundColor() override; | 37 SkColor GetBackgroundColor() override; |
39 | 38 |
(...skipping 28 matching lines...) Expand all Loading... |
68 float brightness_; | 67 float brightness_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer); | 69 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer); |
71 }; | 70 }; |
72 | 71 |
73 bool RegisterStaticTabSceneLayer(JNIEnv* env); | 72 bool RegisterStaticTabSceneLayer(JNIEnv* env); |
74 | 73 |
75 } // namespace android | 74 } // namespace android |
76 | 75 |
77 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_
H_ | 76 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_
H_ |
OLD | NEW |