| 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_TOOLBAR_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Implements Layer | 30 // Implements Layer |
| 31 scoped_refptr<cc::Layer> layer() override; | 31 scoped_refptr<cc::Layer> layer() override; |
| 32 | 32 |
| 33 void PushResource(int toolbar_resource_id, | 33 void PushResource(int toolbar_resource_id, |
| 34 int toolbar_background_color, | 34 int toolbar_background_color, |
| 35 bool anonymize, | 35 bool anonymize, |
| 36 int toolbar_textbox_background_color, | 36 int toolbar_textbox_background_color, |
| 37 int url_bar_background_resource_id, | 37 int url_bar_background_resource_id, |
| 38 float url_bar_alpha, | 38 float url_bar_alpha, |
| 39 bool show_debug, | 39 bool show_debug, |
| 40 float brightness, | |
| 41 bool clip_shadow); | 40 bool clip_shadow); |
| 42 | 41 |
| 43 void UpdateProgressBar(int progress_bar_x, | 42 void UpdateProgressBar(int progress_bar_x, |
| 44 int progress_bar_y, | 43 int progress_bar_y, |
| 45 int progress_bar_width, | 44 int progress_bar_width, |
| 46 int progress_bar_height, | 45 int progress_bar_height, |
| 47 int progress_bar_color, | 46 int progress_bar_color, |
| 48 int progress_bar_background_x, | 47 int progress_bar_background_x, |
| 49 int progress_bar_background_y, | 48 int progress_bar_background_y, |
| 50 int progress_bar_background_width, | 49 int progress_bar_background_width, |
| 51 int progress_bar_background_height, | 50 int progress_bar_background_height, |
| 52 int progress_bar_background_color); | 51 int progress_bar_background_color); |
| 53 | 52 |
| 54 protected: | 53 protected: |
| 55 explicit ToolbarLayer(ui::ResourceManager* resource_manager); | 54 explicit ToolbarLayer(ui::ResourceManager* resource_manager); |
| 56 ~ToolbarLayer() override; | 55 ~ToolbarLayer() override; |
| 57 | 56 |
| 58 private: | 57 private: |
| 59 ui::ResourceManager* resource_manager_; | 58 ui::ResourceManager* resource_manager_; |
| 60 | 59 |
| 61 scoped_refptr<cc::Layer> layer_; | 60 scoped_refptr<cc::Layer> layer_; |
| 62 scoped_refptr<cc::SolidColorLayer> toolbar_background_layer_; | 61 scoped_refptr<cc::SolidColorLayer> toolbar_background_layer_; |
| 63 scoped_refptr<cc::NinePatchLayer> url_bar_background_layer_; | 62 scoped_refptr<cc::NinePatchLayer> url_bar_background_layer_; |
| 64 scoped_refptr<cc::UIResourceLayer> bitmap_layer_; | 63 scoped_refptr<cc::UIResourceLayer> bitmap_layer_; |
| 65 scoped_refptr<cc::SolidColorLayer> progress_bar_layer_; | 64 scoped_refptr<cc::SolidColorLayer> progress_bar_layer_; |
| 66 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_; | 65 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_; |
| 67 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; | 66 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; |
| 68 scoped_refptr<cc::SolidColorLayer> debug_layer_; | 67 scoped_refptr<cc::SolidColorLayer> debug_layer_; |
| 69 float brightness_; | |
| 70 | 68 |
| 71 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); | 69 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); |
| 72 }; | 70 }; |
| 73 | 71 |
| 74 } // namespace android | 72 } // namespace android |
| 75 } // namespace chrome | 73 } // namespace chrome |
| 76 | 74 |
| 77 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ | 75 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| OLD | NEW |