| 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_DECORATION_TITLE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_DECORATION_TITLE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_DECORATION_TITLE_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_DECORATION_TITLE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "cc/resources/ui_resource_client.h" | 14 #include "cc/resources/ui_resource_client.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 #include "ui/gfx/transform.h" | 16 #include "ui/gfx/transform.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 class Layer; | 19 class Layer; |
| 20 class UIResourceLayer; | 20 class UIResourceLayer; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace ui { | 23 namespace ui { |
| 24 class ResourceManager; | 24 class ResourceManager; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace chrome { | 27 namespace chrome { |
| 28 namespace android { | 28 namespace android { |
| 29 | 29 |
| 30 class LayerTitleCache; | |
| 31 | |
| 32 class DecorationTitle { | 30 class DecorationTitle { |
| 33 public: | 31 public: |
| 34 DecorationTitle(LayerTitleCache* layer_title_cache, | 32 DecorationTitle(ui::ResourceManager* resource_manager, |
| 35 ui::ResourceManager* resource_manager, | |
| 36 int title_resource_id, | 33 int title_resource_id, |
| 37 int favicon_resource_id, | 34 int favicon_resource_id, |
| 38 int spinner_resource_id, | 35 int spinner_resource_id, |
| 39 int spinner_resource_id_incognito, | 36 int spinner_resource_id_incognito, |
| 40 int fade_width, | 37 int fade_width, |
| 41 int favicon_start_padding, | 38 int favicon_start_padding, |
| 42 int favicon_end_padding, | 39 int favicon_end_padding, |
| 43 bool is_incognito, | 40 bool is_incognito, |
| 44 bool is_rtl); | 41 bool is_rtl); |
| 45 virtual ~DecorationTitle(); | 42 virtual ~DecorationTitle(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 float spinner_rotation_; | 78 float spinner_rotation_; |
| 82 int favicon_start_padding_; | 79 int favicon_start_padding_; |
| 83 int favicon_end_padding_; | 80 int favicon_end_padding_; |
| 84 bool is_incognito_; | 81 bool is_incognito_; |
| 85 bool is_rtl_; | 82 bool is_rtl_; |
| 86 bool is_loading_; | 83 bool is_loading_; |
| 87 std::unique_ptr<gfx::Transform> transform_; | 84 std::unique_ptr<gfx::Transform> transform_; |
| 88 | 85 |
| 89 ui::ResourceManager* resource_manager_; | 86 ui::ResourceManager* resource_manager_; |
| 90 | 87 |
| 91 LayerTitleCache* layer_title_cache_; | |
| 92 | |
| 93 DISALLOW_COPY_AND_ASSIGN(DecorationTitle); | 88 DISALLOW_COPY_AND_ASSIGN(DecorationTitle); |
| 94 }; | 89 }; |
| 95 | 90 |
| 96 } // namespace android | 91 } // namespace android |
| 97 } // namespace chrome | 92 } // namespace chrome |
| 98 | 93 |
| 99 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_DECORATION_TITLE_H_ | 94 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_DECORATION_TITLE_H_ |
| OLD | NEW |