| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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_READER_MODE_LAYER_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "chrome/browser/android/compositor/layer/overlay_panel_layer.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 class Layer; | |
| 14 } | |
| 15 | |
| 16 namespace ui { | |
| 17 class ResourceManager; | |
| 18 } | |
| 19 | |
| 20 namespace android { | |
| 21 | |
| 22 class ReaderModeLayer : public OverlayPanelLayer { | |
| 23 public: | |
| 24 static scoped_refptr<ReaderModeLayer> Create( | |
| 25 ui::ResourceManager* resource_manager); | |
| 26 | |
| 27 void SetProperties(float dp_to_px, | |
| 28 const scoped_refptr<cc::Layer>& content_layer, | |
| 29 float panel_x, | |
| 30 float panel_y, | |
| 31 float panel_width, | |
| 32 float panel_height, | |
| 33 float bar_margin_side, | |
| 34 float bar_height, | |
| 35 float text_opacity, | |
| 36 bool bar_border_visible, | |
| 37 float bar_border_height, | |
| 38 bool bar_shadow_visible, | |
| 39 float bar_shadow_opacity); | |
| 40 | |
| 41 protected: | |
| 42 explicit ReaderModeLayer(ui::ResourceManager* resource_manager); | |
| 43 ~ReaderModeLayer() override; | |
| 44 }; | |
| 45 | |
| 46 } // namespace android | |
| 47 | |
| 48 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_ | |
| OLD | NEW |