| 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 #include "chrome/browser/android/compositor/decoration_title.h" | 5 #include "chrome/browser/android/compositor/decoration_title.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 : layer_(cc::Layer::Create(content::Compositor::LayerSettings())), | 35 : layer_(cc::Layer::Create(content::Compositor::LayerSettings())), |
| 36 layer_opaque_( | 36 layer_opaque_( |
| 37 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), | 37 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), |
| 38 layer_fade_( | 38 layer_fade_( |
| 39 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), | 39 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), |
| 40 layer_favicon_( | 40 layer_favicon_( |
| 41 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), | 41 cc::UIResourceLayer::Create(content::Compositor::LayerSettings())), |
| 42 title_resource_id_(title_resource_id), | 42 title_resource_id_(title_resource_id), |
| 43 favicon_resource_id_(favicon_resource_id), | 43 favicon_resource_id_(favicon_resource_id), |
| 44 spinner_resource_id_(spinner_resource_id), | 44 spinner_resource_id_(spinner_resource_id), |
| 45 spinner_incognito_resource_id_(spinner_resource_id), | 45 spinner_incognito_resource_id_(spinner_incognito_resource_id), |
| 46 fade_width_(fade_width), | 46 fade_width_(fade_width), |
| 47 spinner_rotation_(0), | 47 spinner_rotation_(0), |
| 48 favicon_start_padding_(favicon_start_padding), | 48 favicon_start_padding_(favicon_start_padding), |
| 49 favicon_end_padding_(favicon_end_padding), | 49 favicon_end_padding_(favicon_end_padding), |
| 50 is_incognito_(is_incognito), | 50 is_incognito_(is_incognito), |
| 51 is_rtl_(is_rtl), | 51 is_rtl_(is_rtl), |
| 52 is_loading_(false), | 52 is_loading_(false), |
| 53 transform_(new gfx::Transform()), | 53 transform_(new gfx::Transform()), |
| 54 resource_manager_(resource_manager), | 54 resource_manager_(resource_manager), |
| 55 layer_title_cache_(layer_title_cache) { | 55 layer_title_cache_(layer_title_cache) { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 242 } |
| 243 } | 243 } |
| 244 | 244 |
| 245 scoped_refptr<cc::Layer> DecorationTitle::layer() { | 245 scoped_refptr<cc::Layer> DecorationTitle::layer() { |
| 246 DCHECK(layer_.get()); | 246 DCHECK(layer_.get()); |
| 247 return layer_; | 247 return layer_; |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace android | 250 } // namespace android |
| 251 } // namespace chrome | 251 } // namespace chrome |
| OLD | NEW |