Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome/browser/android/compositor/layer/reader_mode_layer.h

Issue 2142263002: Remove ContentViewCore dependency from OverlayPanel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: var name Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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_READER_MODE_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "chrome/browser/android/compositor/layer/overlay_panel_layer.h" 10 #include "chrome/browser/android/compositor/layer/overlay_panel_layer.h"
11 11
12 namespace content { 12 namespace cc {
13 class ContentViewCore; 13 class Layer;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
17 class ResourceManager; 17 class ResourceManager;
18 } 18 }
19 19
20 namespace chrome { 20 namespace chrome {
21 namespace android { 21 namespace android {
22 22
23 class ReaderModeLayer : public OverlayPanelLayer { 23 class ReaderModeLayer : public OverlayPanelLayer {
24 public: 24 public:
25 static scoped_refptr<ReaderModeLayer> Create( 25 static scoped_refptr<ReaderModeLayer> Create(
26 ui::ResourceManager* resource_manager); 26 ui::ResourceManager* resource_manager);
27 27
28 void SetProperties(float dp_to_px, 28 void SetProperties(float dp_to_px,
29 content::ContentViewCore* content_view_core, 29 const scoped_refptr<cc::Layer>& content_layer,
30 float panel_x, 30 float panel_x,
31 float panel_y, 31 float panel_y,
32 float panel_width, 32 float panel_width,
33 float panel_height, 33 float panel_height,
34 float bar_margin_side, 34 float bar_margin_side,
35 float bar_height, 35 float bar_height,
36 float text_opacity, 36 float text_opacity,
37 bool bar_border_visible, 37 bool bar_border_visible,
38 float bar_border_height, 38 float bar_border_height,
39 bool bar_shadow_visible, 39 bool bar_shadow_visible,
40 float bar_shadow_opacity); 40 float bar_shadow_opacity);
41 41
42 protected: 42 protected:
43 explicit ReaderModeLayer(ui::ResourceManager* resource_manager); 43 explicit ReaderModeLayer(ui::ResourceManager* resource_manager);
44 ~ReaderModeLayer() override; 44 ~ReaderModeLayer() override;
45 }; 45 };
46 46
47 } // namespace android 47 } // namespace android
48 } // namespace chrome 48 } // namespace chrome
49 49
50 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_ 50 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_READER_MODE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698