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

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

Issue 2228823003: When possible, draw the toolbar shadow with the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 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 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 ToolbarSceneLayer(JNIEnv* env, jobject jobj); 30 ToolbarSceneLayer(JNIEnv* env, jobject jobj);
31 ~ToolbarSceneLayer() override; 31 ~ToolbarSceneLayer() override;
32 32
33 // Update the compositor version of the toolbar. 33 // Update the compositor version of the toolbar.
34 void UpdateToolbarLayer( 34 void UpdateToolbarLayer(
35 JNIEnv* env, 35 JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& object, 36 const base::android::JavaParamRef<jobject>& object,
37 const base::android::JavaParamRef<jobject>& jresource_manager, 37 const base::android::JavaParamRef<jobject>& jresource_manager,
38 jint toolbar_resource_id, 38 jint toolbar_resource_id,
39 jint toolbar_shadow_resource_id,
39 jint toolbar_background_color, 40 jint toolbar_background_color,
40 jint url_bar_resource_id, 41 jint url_bar_resource_id,
41 jfloat url_bar_alpha, 42 jfloat url_bar_alpha,
42 jfloat top_offset, 43 jfloat top_offset,
43 bool visible, 44 bool visible,
44 bool show_shadow); 45 bool show_shadow);
45 46
46 // Update the progress bar. 47 // Update the progress bar.
47 void UpdateProgressBar( 48 void UpdateProgressBar(
48 JNIEnv* env, 49 JNIEnv* env,
(...skipping 26 matching lines...) Expand all
75 76
76 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer); 77 DISALLOW_COPY_AND_ASSIGN(ToolbarSceneLayer);
77 }; 78 };
78 79
79 bool RegisterToolbarSceneLayer(JNIEnv* env); 80 bool RegisterToolbarSceneLayer(JNIEnv* env);
80 81
81 } // namespace android 82 } // namespace android
82 } // namespace chrome 83 } // namespace chrome
83 84
84 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_ 85 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TOOLBAR_SCENE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698