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

Side by Side Diff: chrome/browser/android/compositor/layer/overlay_panel_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OVERLAY_PANEL_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_OVERLAY_PANEL_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_OVERLAY_PANEL_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_OVERLAY_PANEL_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "chrome/browser/android/compositor/layer/layer.h" 10 #include "chrome/browser/android/compositor/layer/layer.h"
11 11
12 namespace cc { 12 namespace cc {
13 class Layer; 13 class Layer;
14 class NinePatchLayer; 14 class NinePatchLayer;
15 class SolidColorLayer; 15 class SolidColorLayer;
16 class UIResourceLayer; 16 class UIResourceLayer;
17 } 17 }
18 18
19 namespace content {
20 class ContentViewCore;
21 }
22
23 namespace ui { 19 namespace ui {
24 class ResourceManager; 20 class ResourceManager;
25 } 21 }
26 22
27 namespace chrome { 23 namespace chrome {
28 namespace android { 24 namespace android {
29 25
30 class OverlayPanelLayer : public Layer { 26 class OverlayPanelLayer : public Layer {
31 public: 27 public:
32 void SetResourceIds(int bar_text_resource_id, 28 void SetResourceIds(int bar_text_resource_id,
33 int panel_shadow_resource_id, 29 int panel_shadow_resource_id,
34 int bar_shadow_resource_id, 30 int bar_shadow_resource_id,
35 int panel_icon_resource_id, 31 int panel_icon_resource_id,
36 int close_icon_resource_id); 32 int close_icon_resource_id);
37 33
38 void SetProperties(float dp_to_px, 34 void SetProperties(float dp_to_px,
39 content::ContentViewCore* content_view_core, 35 const scoped_refptr<cc::Layer>& content_layer,
40 float content_view_core_offset_y, 36 float content_offset_y,
41 float panel_x, 37 float panel_x,
42 float panel_y, 38 float panel_y,
43 float panel_width, 39 float panel_width,
44 float panel_height, 40 float panel_height,
45 float bar_margin_side, 41 float bar_margin_side,
46 float bar_height, 42 float bar_height,
47 float bar_offset_y, 43 float bar_offset_y,
48 float bar_text_opacity, 44 float bar_text_opacity,
49 bool bar_border_visible, 45 bool bar_border_visible,
50 float bar_border_height, 46 float bar_border_height,
(...skipping 12 matching lines...) Expand all
63 59
64 ui::ResourceManager* resource_manager_; 60 ui::ResourceManager* resource_manager_;
65 scoped_refptr<cc::Layer> layer_; 61 scoped_refptr<cc::Layer> layer_;
66 62
67 scoped_refptr<cc::NinePatchLayer> panel_shadow_; 63 scoped_refptr<cc::NinePatchLayer> panel_shadow_;
68 scoped_refptr<cc::SolidColorLayer> bar_background_; 64 scoped_refptr<cc::SolidColorLayer> bar_background_;
69 scoped_refptr<cc::UIResourceLayer> bar_text_; 65 scoped_refptr<cc::UIResourceLayer> bar_text_;
70 scoped_refptr<cc::UIResourceLayer> bar_shadow_; 66 scoped_refptr<cc::UIResourceLayer> bar_shadow_;
71 scoped_refptr<cc::UIResourceLayer> panel_icon_; 67 scoped_refptr<cc::UIResourceLayer> panel_icon_;
72 scoped_refptr<cc::UIResourceLayer> close_icon_; 68 scoped_refptr<cc::UIResourceLayer> close_icon_;
73 scoped_refptr<cc::Layer> content_view_container_; 69 scoped_refptr<cc::Layer> content_container_;
74 scoped_refptr<cc::Layer> text_container_; 70 scoped_refptr<cc::Layer> text_container_;
75 scoped_refptr<cc::SolidColorLayer> bar_border_; 71 scoped_refptr<cc::SolidColorLayer> bar_border_;
76 72
77 int panel_icon_resource_id_; 73 int panel_icon_resource_id_;
78 int bar_text_resource_id_; 74 int bar_text_resource_id_;
79 int panel_shadow_resource_id_; 75 int panel_shadow_resource_id_;
80 int bar_shadow_resource_id_; 76 int bar_shadow_resource_id_;
81 int close_icon_resource_id_; 77 int close_icon_resource_id_;
82 }; 78 };
83 79
84 } // namespace android 80 } // namespace android
85 } // namespace chrome 81 } // namespace chrome
86 82
87 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_OVERLAY_PANEL_LAYER_H_ 83 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_OVERLAY_PANEL_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698