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

Side by Side Diff: chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h

Issue 1988023010: Toolbar is a root layer for the UI compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments Created 4 years, 6 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 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>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 jboolean can_use_live_layer, 52 jboolean can_use_live_layer,
53 jint default_background_color, 53 jint default_background_color,
54 jfloat x, 54 jfloat x,
55 jfloat y, 55 jfloat y,
56 jfloat width, 56 jfloat width,
57 jfloat height, 57 jfloat height,
58 jfloat content_offset_y, 58 jfloat content_offset_y,
59 jfloat static_to_view_blend, 59 jfloat static_to_view_blend,
60 jfloat saturation, 60 jfloat saturation,
61 jfloat brightness); 61 jfloat brightness);
62 // Update the compositor version of the toolbar.
63 void UpdateToolbarLayer(
64 JNIEnv* env,
65 const base::android::JavaParamRef<jobject>& object,
66 const base::android::JavaParamRef<jobject>& jresource_manager,
67 jint toolbar_resource_id,
68 jint toolbar_background_color,
69 jint url_bar_resource_id,
70 jfloat url_bar_alpha,
71 jfloat top_offset,
72 bool visible,
73 bool show_shadow);
74 // Update the progress bar.
75 void UpdateProgressBar(
76 JNIEnv* env,
77 const base::android::JavaParamRef<jobject>& object,
78 jint progress_bar_x,
79 jint progress_bar_y,
80 jint progress_bar_width,
81 jint progress_bar_height,
82 jint progress_bar_color,
83 jint progress_bar_background_x,
84 jint progress_bar_background_y,
85 jint progress_bar_background_width,
86 jint progress_bar_background_height,
87 jint progress_bar_background_color);
88 62
89 private: 63 private:
90 scoped_refptr<chrome::android::ContentLayer> content_layer_; 64 scoped_refptr<chrome::android::ContentLayer> content_layer_;
91 scoped_refptr<cc::Layer> content_scene_layer_; 65 scoped_refptr<cc::Layer> content_scene_layer_;
92 scoped_refptr<ToolbarLayer> toolbar_layer_;
93 66
94 int last_set_tab_id_; 67 int last_set_tab_id_;
95 int background_color_; 68 int background_color_;
96 float brightness_; 69 float brightness_;
97 70
98 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer); 71 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer);
99 }; 72 };
100 73
101 bool RegisterStaticTabSceneLayer(JNIEnv* env); 74 bool RegisterStaticTabSceneLayer(JNIEnv* env);
102 75
103 } // namespace android 76 } // namespace android
104 } // namespace chrome 77 } // namespace chrome
105 78
106 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_ H_ 79 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698