| 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 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 static scoped_refptr<ToolbarLayer> Create( | 26 static scoped_refptr<ToolbarLayer> Create( |
| 27 ui::ResourceManager* resource_manager); | 27 ui::ResourceManager* resource_manager); |
| 28 | 28 |
| 29 // Implements Layer | 29 // Implements Layer |
| 30 scoped_refptr<cc::Layer> layer() override; | 30 scoped_refptr<cc::Layer> layer() override; |
| 31 | 31 |
| 32 void PushResource(int toolbar_resource_id, | 32 void PushResource(int toolbar_resource_id, |
| 33 int toolbar_background_color, | 33 int toolbar_background_color, |
| 34 bool anonymize, | 34 bool anonymize, |
| 35 int toolbar_textbox_background_color, | 35 int toolbar_textbox_background_color, |
| 36 int url_bar_background_resource_id, | 36 int url_bar_background_resource_id, |
| 37 float url_bar_alpha, | 37 float url_bar_alpha, |
| 38 float view_height, | 38 float window_height, |
| 39 float y_offset, |
| 39 bool show_debug, | 40 bool show_debug, |
| 40 bool clip_shadow, | 41 bool clip_shadow, |
| 41 bool browser_controls_at_bottom); | 42 bool browser_controls_at_bottom); |
| 42 | 43 |
| 43 void UpdateProgressBar(int progress_bar_x, | 44 void UpdateProgressBar(int progress_bar_x, |
| 44 int progress_bar_y, | 45 int progress_bar_y, |
| 45 int progress_bar_width, | 46 int progress_bar_width, |
| 46 int progress_bar_height, | 47 int progress_bar_height, |
| 47 int progress_bar_color, | 48 int progress_bar_color, |
| 48 int progress_bar_background_x, | 49 int progress_bar_background_x, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 67 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_; | 68 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_; |
| 68 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; | 69 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; |
| 69 scoped_refptr<cc::SolidColorLayer> debug_layer_; | 70 scoped_refptr<cc::SolidColorLayer> debug_layer_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); | 72 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace android | 75 } // namespace android |
| 75 | 76 |
| 76 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ | 77 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| OLD | NEW |