| 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 26 matching lines...) Expand all Loading... |
| 37 // specific tab. To specialize it call CustomizeForId() and SetProperties(). | 37 // specific tab. To specialize it call CustomizeForId() and SetProperties(). |
| 38 class TabLayer : public Layer { | 38 class TabLayer : public Layer { |
| 39 public: | 39 public: |
| 40 static scoped_refptr<TabLayer> Create(bool incognito, | 40 static scoped_refptr<TabLayer> Create(bool incognito, |
| 41 ui::ResourceManager* resource_manager, | 41 ui::ResourceManager* resource_manager, |
| 42 LayerTitleCache* layer_title_cache, | 42 LayerTitleCache* layer_title_cache, |
| 43 TabContentManager* tab_content_manager); | 43 TabContentManager* tab_content_manager); |
| 44 | 44 |
| 45 void SetProperties(int id, | 45 void SetProperties(int id, |
| 46 bool can_use_live_layer, | 46 bool can_use_live_layer, |
| 47 bool can_use_static_layer, |
| 47 bool browser_controls_at_bottom, | 48 bool browser_controls_at_bottom, |
| 48 int toolbar_resource_id, | 49 int toolbar_resource_id, |
| 49 int close_button_resource_id, | 50 int close_button_resource_id, |
| 50 int shadow_resource_id, | 51 int shadow_resource_id, |
| 51 int contour_resource_id, | 52 int contour_resource_id, |
| 52 int back_logo_resource_id, | 53 int back_logo_resource_id, |
| 53 int border_resource_id, | 54 int border_resource_id, |
| 54 int border_inner_shadow_resource_id, | 55 int border_inner_shadow_resource_id, |
| 55 int default_background_color, | 56 int default_background_color, |
| 56 int back_logo_color, | 57 int back_logo_color, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 scoped_refptr<cc::NinePatchLayer> shadow_; | 144 scoped_refptr<cc::NinePatchLayer> shadow_; |
| 144 scoped_refptr<cc::UIResourceLayer> back_logo_; | 145 scoped_refptr<cc::UIResourceLayer> back_logo_; |
| 145 float brightness_; | 146 float brightness_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(TabLayer); | 148 DISALLOW_COPY_AND_ASSIGN(TabLayer); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace android | 151 } // namespace android |
| 151 | 152 |
| 152 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ | 153 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ |
| OLD | NEW |