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

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

Issue 2158853004: Do not include toolbar shadow for UIResourceLayer snapshot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment 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 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 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class ToolbarLayer : public Layer { 25 class ToolbarLayer : public Layer {
26 public: 26 public:
27 static scoped_refptr<ToolbarLayer> Create( 27 static scoped_refptr<ToolbarLayer> Create(
28 ui::ResourceManager* resource_manager); 28 ui::ResourceManager* resource_manager);
29 29
30 // Implements Layer 30 // Implements Layer
31 scoped_refptr<cc::Layer> layer() override; 31 scoped_refptr<cc::Layer> layer() override;
32 32
33 void PushResource(int toolbar_resource_id, 33 void PushResource(int toolbar_resource_id,
34 int toolbar_shadow_resource_id,
34 int toolbar_background_color, 35 int toolbar_background_color,
35 bool anonymize, 36 bool anonymize,
36 int toolbar_textbox_background_color, 37 int toolbar_textbox_background_color,
37 int url_bar_background_resource_id, 38 int url_bar_background_resource_id,
38 float url_bar_alpha, 39 float url_bar_alpha,
39 bool show_debug, 40 bool show_debug,
40 bool clip_shadow); 41 bool needs_toolbar_shadow);
41 42
42 void UpdateProgressBar(int progress_bar_x, 43 void UpdateProgressBar(int progress_bar_x,
43 int progress_bar_y, 44 int progress_bar_y,
44 int progress_bar_width, 45 int progress_bar_width,
45 int progress_bar_height, 46 int progress_bar_height,
46 int progress_bar_color, 47 int progress_bar_color,
47 int progress_bar_background_x, 48 int progress_bar_background_x,
48 int progress_bar_background_y, 49 int progress_bar_background_y,
49 int progress_bar_background_width, 50 int progress_bar_background_width,
50 int progress_bar_background_height, 51 int progress_bar_background_height,
51 int progress_bar_background_color); 52 int progress_bar_background_color);
52 53
53 protected: 54 protected:
54 explicit ToolbarLayer(ui::ResourceManager* resource_manager); 55 explicit ToolbarLayer(ui::ResourceManager* resource_manager);
55 ~ToolbarLayer() override; 56 ~ToolbarLayer() override;
56 57
57 private: 58 private:
58 ui::ResourceManager* resource_manager_; 59 ui::ResourceManager* resource_manager_;
59 60
60 scoped_refptr<cc::Layer> layer_; 61 scoped_refptr<cc::Layer> layer_;
61 scoped_refptr<cc::SolidColorLayer> toolbar_background_layer_; 62 scoped_refptr<cc::SolidColorLayer> toolbar_background_layer_;
63 scoped_refptr<cc::UIResourceLayer> toolbar_shadow_layer_;
62 scoped_refptr<cc::NinePatchLayer> url_bar_background_layer_; 64 scoped_refptr<cc::NinePatchLayer> url_bar_background_layer_;
63 scoped_refptr<cc::UIResourceLayer> bitmap_layer_; 65 scoped_refptr<cc::UIResourceLayer> bitmap_layer_;
64 scoped_refptr<cc::SolidColorLayer> progress_bar_layer_; 66 scoped_refptr<cc::SolidColorLayer> progress_bar_layer_;
65 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_; 67 scoped_refptr<cc::SolidColorLayer> progress_bar_background_layer_;
66 scoped_refptr<cc::SolidColorLayer> anonymize_layer_; 68 scoped_refptr<cc::SolidColorLayer> anonymize_layer_;
67 scoped_refptr<cc::SolidColorLayer> debug_layer_; 69 scoped_refptr<cc::SolidColorLayer> debug_layer_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer); 71 DISALLOW_COPY_AND_ASSIGN(ToolbarLayer);
70 }; 72 };
71 73
72 } // namespace android 74 } // namespace android
73 } // namespace chrome 75 } // namespace chrome
74 76
75 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_ 77 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TOOLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/layer/tab_layer.cc ('k') | chrome/browser/android/compositor/layer/toolbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698