OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LAYER_TAB_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ |
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class TabLayer : public Layer { | 42 class TabLayer : public Layer { |
43 public: | 43 public: |
44 static scoped_refptr<TabLayer> Create(bool incognito, | 44 static scoped_refptr<TabLayer> Create(bool incognito, |
45 ui::ResourceManager* resource_manager, | 45 ui::ResourceManager* resource_manager, |
46 LayerTitleCache* layer_title_cache, | 46 LayerTitleCache* layer_title_cache, |
47 TabContentManager* tab_content_manager); | 47 TabContentManager* tab_content_manager); |
48 | 48 |
49 void SetProperties(int id, | 49 void SetProperties(int id, |
50 bool can_use_live_layer, | 50 bool can_use_live_layer, |
51 int toolbar_resource_id, | 51 int toolbar_resource_id, |
| 52 int toolbar_shadow_resource_id, |
52 int close_button_resource_id, | 53 int close_button_resource_id, |
53 int shadow_resource_id, | 54 int shadow_resource_id, |
54 int contour_resource_id, | 55 int contour_resource_id, |
55 int back_logo_resource_id, | 56 int back_logo_resource_id, |
56 int border_resource_id, | 57 int border_resource_id, |
57 int border_inner_shadow_resource_id, | 58 int border_inner_shadow_resource_id, |
58 int default_background_color, | 59 int default_background_color, |
59 int back_logo_color, | 60 int back_logo_color, |
60 bool is_portrait, | 61 bool is_portrait, |
61 float x, | 62 float x, |
(...skipping 27 matching lines...) Expand all Loading... |
89 int default_theme_color, | 90 int default_theme_color, |
90 int toolbar_background_color, | 91 int toolbar_background_color, |
91 bool anonymize_toolbar, | 92 bool anonymize_toolbar, |
92 int toolbar_textbox_resource_id, | 93 int toolbar_textbox_resource_id, |
93 int toolbar_textbox_background_color, | 94 int toolbar_textbox_background_color, |
94 float toolbar_textbox_alpha, | 95 float toolbar_textbox_alpha, |
95 float toolbar_alpha, | 96 float toolbar_alpha, |
96 float toolbar_y_offset, | 97 float toolbar_y_offset, |
97 float side_border_scale, | 98 float side_border_scale, |
98 bool attach_content, | 99 bool attach_content, |
99 bool inset_border); | 100 bool inset_border, |
| 101 bool needs_toolbar_shadow); |
100 | 102 |
101 bool is_incognito() const { return incognito_; } | 103 bool is_incognito() const { return incognito_; } |
102 | 104 |
103 scoped_refptr<cc::Layer> layer() override; | 105 scoped_refptr<cc::Layer> layer() override; |
104 | 106 |
105 static void ComputePaddingPositions(const gfx::Size& content_size, | 107 static void ComputePaddingPositions(const gfx::Size& content_size, |
106 const gfx::Size& desired_size, | 108 const gfx::Size& desired_size, |
107 gfx::Rect* side_padding_rect, | 109 gfx::Rect* side_padding_rect, |
108 gfx::Rect* bottom_padding_rect); | 110 gfx::Rect* bottom_padding_rect); |
109 | 111 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 scoped_refptr<cc::UIResourceLayer> back_logo_; | 150 scoped_refptr<cc::UIResourceLayer> back_logo_; |
149 float brightness_; | 151 float brightness_; |
150 | 152 |
151 DISALLOW_COPY_AND_ASSIGN(TabLayer); | 153 DISALLOW_COPY_AND_ASSIGN(TabLayer); |
152 }; | 154 }; |
153 | 155 |
154 } // namespace android | 156 } // namespace android |
155 } // namespace chrome | 157 } // namespace chrome |
156 | 158 |
157 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ | 159 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ |
OLD | NEW |