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

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

Issue 2707403004: Unify background color gutters. (Closed)
Patch Set: Rebase Created 3 years, 9 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_TAB_STRIP_SCENE_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_STRIP_SCENE_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_STRIP_SCENE_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_STRIP_SCENE_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 jfloat width, 104 jfloat width,
105 jfloat height, 105 jfloat height,
106 jfloat content_offset_x, 106 jfloat content_offset_x,
107 jfloat close_button_alpha, 107 jfloat close_button_alpha,
108 jboolean is_loading, 108 jboolean is_loading,
109 jfloat spinner_rotation, 109 jfloat spinner_rotation,
110 jfloat border_opacity, 110 jfloat border_opacity,
111 const base::android::JavaParamRef<jobject>& jlayer_title_cache, 111 const base::android::JavaParamRef<jobject>& jlayer_title_cache,
112 const base::android::JavaParamRef<jobject>& jresource_manager); 112 const base::android::JavaParamRef<jobject>& jresource_manager);
113 113
114 bool ShouldShowBackground() override;
115 SkColor GetBackgroundColor() override;
116
114 private: 117 private:
115 scoped_refptr<TabHandleLayer> GetNextLayer( 118 scoped_refptr<TabHandleLayer> GetNextLayer(
116 LayerTitleCache* layer_title_cache); 119 LayerTitleCache* layer_title_cache);
117 120
118 typedef std::vector<scoped_refptr<TabHandleLayer>> TabHandleLayerList; 121 typedef std::vector<scoped_refptr<TabHandleLayer>> TabHandleLayerList;
119 122
120 scoped_refptr<cc::SolidColorLayer> tab_strip_layer_; 123 scoped_refptr<cc::SolidColorLayer> tab_strip_layer_;
121 scoped_refptr<cc::Layer> scrollable_strip_layer_; 124 scoped_refptr<cc::Layer> scrollable_strip_layer_;
122 scoped_refptr<cc::UIResourceLayer> new_tab_button_; 125 scoped_refptr<cc::UIResourceLayer> new_tab_button_;
123 scoped_refptr<cc::UIResourceLayer> left_fade_; 126 scoped_refptr<cc::UIResourceLayer> left_fade_;
124 scoped_refptr<cc::UIResourceLayer> right_fade_; 127 scoped_refptr<cc::UIResourceLayer> right_fade_;
125 scoped_refptr<cc::UIResourceLayer> model_selector_button_; 128 scoped_refptr<cc::UIResourceLayer> model_selector_button_;
126 129
127 float background_tab_brightness_; 130 float background_tab_brightness_;
128 float brightness_; 131 float brightness_;
129 unsigned write_index_; 132 unsigned write_index_;
130 TabHandleLayerList tab_handle_layers_; 133 TabHandleLayerList tab_handle_layers_;
131 SceneLayer* content_tree_; 134 SceneLayer* content_tree_;
132 135
133 DISALLOW_COPY_AND_ASSIGN(TabStripSceneLayer); 136 DISALLOW_COPY_AND_ASSIGN(TabStripSceneLayer);
134 }; 137 };
135 138
136 bool RegisterTabStripSceneLayer(JNIEnv* env); 139 bool RegisterTabStripSceneLayer(JNIEnv* env);
137 140
138 } // namespace android 141 } // namespace android
139 142
140 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_STRIP_SCENE_LAYER_H _ 143 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_TAB_STRIP_SCENE_LAYER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698