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

Side by Side Diff: ash/magnifier/partial_magnification_controller.h

Issue 2356323003: cros: Change look of partial magnifier. (Closed)
Patch Set: Fixed patch set 7 errors. Created 4 years, 2 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
« no previous file with comments | « no previous file | ash/magnifier/partial_magnification_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ 5 #ifndef ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_
6 #define ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ 6 #define ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // The host widget is the root parent for all of the layers. The widget's 80 // The host widget is the root parent for all of the layers. The widget's
81 // location follows the mouse, which causes the layers to also move. 81 // location follows the mouse, which causes the layers to also move.
82 views::Widget* host_widget_ = nullptr; 82 views::Widget* host_widget_ = nullptr;
83 83
84 // Draws the background with a zoom filter applied. 84 // Draws the background with a zoom filter applied.
85 std::unique_ptr<ui::Layer> zoom_layer_; 85 std::unique_ptr<ui::Layer> zoom_layer_;
86 // Draws an outline that is overlayed on top of |zoom_layer_|. 86 // Draws an outline that is overlayed on top of |zoom_layer_|.
87 std::unique_ptr<ui::Layer> border_layer_; 87 std::unique_ptr<ui::Layer> border_layer_;
88 // Draws a multicolored black/white/black border on top of |border_layer_|. 88 // Draws a multicolored black/white/black border on top of |border_layer_|.
89 // This must be ordered after |border_layer_| so that it gets destroyed after 89 // Also draws a shadow around the border. This must be ordered after
90 // |border_layer_|, otherwise |border_layer_| will have a pointer to a deleted 90 // |border_layer_| so that it gets destroyed after |border_layer_|, otherwise
91 // delegate. 91 // |border_layer_| will have a pointer to a deleted delegate.
92 std::unique_ptr<BorderRenderer> border_renderer_; 92 std::unique_ptr<BorderRenderer> border_renderer_;
93 // Masks the content of |zoom_layer_| so that only a circle is magnified. 93 // Masks the content of |zoom_layer_| so that only a circle is magnified.
94 std::unique_ptr<ContentMask> zoom_mask_; 94 std::unique_ptr<ContentMask> zoom_mask_;
95 // Masks the content of |border_layer_| so that only a circle outline is 95 // Masks the content of |border_layer_| so that only a circle outline is
96 // drawn. 96 // drawn.
97 std::unique_ptr<ContentMask> border_mask_; 97 std::unique_ptr<ContentMask> border_mask_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController); 99 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController);
100 }; 100 };
101 101
102 } // namespace ash 102 } // namespace ash
103 103
104 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ 104 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/magnifier/partial_magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698