OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/android/compositor/layer/layer.h" |
| 12 #include "ui/android/resources/resource_manager.h" |
| 13 |
| 14 namespace cc { |
| 15 class Layer; |
| 16 class SolidColorLayer; |
| 17 class UIResourceLayer; |
| 18 } |
| 19 |
| 20 namespace chrome { |
| 21 namespace android { |
| 22 |
| 23 class ToolbarLayer : public Layer { |
| 24 public: |
| 25 static scoped_refptr<ToolbarLayer> Create(); |
| 26 |
| 27 // Implements Layer |
| 28 scoped_refptr<cc::Layer> layer() override; |
| 29 |
| 30 void PushResource(ui::ResourceManager::Resource* resource, |
| 31 bool anonymize, |
| 32 bool anonymize_component_is_incognito, |
| 33 bool show_debug); |
| 34 |
| 35 protected: |
| 36 ToolbarLayer(); |
| 37 ~ToolbarLayer() override; |
| 38 |
| 39 private: |
| 40 scoped_refptr<cc::Layer> layer_; |
| 41 scoped_refptr<cc::UIResourceLayer> bitmap_layer_; |
| 42 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; |
| 43 scoped_refptr<cc::SolidColorLayer> debug_layer_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); |
| 46 }; |
| 47 |
| 48 } // namespace android |
| 49 } // namespace chrome |
| 50 |
| 51 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ |
OLD | NEW |