| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 protected: | 111 protected: |
| 112 TabLayer(bool incognito, | 112 TabLayer(bool incognito, |
| 113 ui::ResourceManager* resource_manager, | 113 ui::ResourceManager* resource_manager, |
| 114 LayerTitleCache* layer_title_cache, | 114 LayerTitleCache* layer_title_cache, |
| 115 TabContentManager* tab_content_manager); | 115 TabContentManager* tab_content_manager); |
| 116 ~TabLayer() override; | 116 ~TabLayer() override; |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 void SetTitle(DecorationTitle* title); | 119 void SetTitle(DecorationTitle* title); |
| 120 std::unique_ptr<cc::FilterOperations> createSolidColorFilter(int color); | |
| 121 | 120 |
| 122 const bool incognito_; | 121 const bool incognito_; |
| 123 bool toolbar_background_color_; | |
| 124 bool close_button_color_; | |
| 125 ui::ResourceManager* resource_manager_; | 122 ui::ResourceManager* resource_manager_; |
| 126 LayerTitleCache* layer_title_cache_; | 123 LayerTitleCache* layer_title_cache_; |
| 127 | 124 |
| 128 // [layer]-+-[toolbar] | 125 // [layer]-+-[toolbar] |
| 129 // +-[close button] | 126 // +-[close button] |
| 130 // +-[title] | 127 // +-[title] |
| 131 // +-[front border] | 128 // +-[front border] |
| 132 // +-[content] | 129 // +-[content] |
| 133 // +-[back_logo] | 130 // +-[back_logo] |
| 134 // +-[padding] | 131 // +-[padding] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 150 scoped_refptr<cc::UIResourceLayer> back_logo_; | 147 scoped_refptr<cc::UIResourceLayer> back_logo_; |
| 151 float brightness_; | 148 float brightness_; |
| 152 | 149 |
| 153 DISALLOW_COPY_AND_ASSIGN(TabLayer); | 150 DISALLOW_COPY_AND_ASSIGN(TabLayer); |
| 154 }; | 151 }; |
| 155 | 152 |
| 156 } // namespace android | 153 } // namespace android |
| 157 } // namespace chrome | 154 } // namespace chrome |
| 158 | 155 |
| 159 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ | 156 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_ |
| OLD | NEW |