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

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

Issue 2344843002: Revert of Magnifier border is now more visible on light backgrounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 3 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 29 matching lines...) Expand all
40 // Switch PartialMagnified RootWindow to |new_root_window|. This does 40 // Switch PartialMagnified RootWindow to |new_root_window|. This does
41 // following: 41 // following:
42 // - Remove the magnifier from the current root window. 42 // - Remove the magnifier from the current root window.
43 // - Create a magnifier in the new root_window |new_root_window|. 43 // - Create a magnifier in the new root_window |new_root_window|.
44 // - Switch the target window from current window to |new_root_window|. 44 // - Switch the target window from current window to |new_root_window|.
45 void SwitchTargetRootWindowIfNeeded(aura::Window* new_root_window); 45 void SwitchTargetRootWindowIfNeeded(aura::Window* new_root_window);
46 46
47 private: 47 private:
48 friend class PartialMagnificationControllerTestApi; 48 friend class PartialMagnificationControllerTestApi;
49 49
50 class BorderRenderer;
51 class ContentMask; 50 class ContentMask;
52 51
53 // ui::EventHandler: 52 // ui::EventHandler:
54 void OnMouseEvent(ui::MouseEvent* event) override; 53 void OnMouseEvent(ui::MouseEvent* event) override;
55 void OnTouchEvent(ui::TouchEvent* event) override; 54 void OnTouchEvent(ui::TouchEvent* event) override;
56 55
57 // WindowObserver: 56 // WindowObserver:
58 void OnWindowDestroying(aura::Window* window) override; 57 void OnWindowDestroying(aura::Window* window) override;
59 58
60 // WidgetObserver: 59 // WidgetObserver:
(...skipping 29 matching lines...) Expand all
90 // Masks the content of |border_layer_| so that only a circle outline is 89 // Masks the content of |border_layer_| so that only a circle outline is
91 // drawn. 90 // drawn.
92 std::unique_ptr<ContentMask> border_mask_; 91 std::unique_ptr<ContentMask> border_mask_;
93 92
94 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController); 93 DISALLOW_COPY_AND_ASSIGN(PartialMagnificationController);
95 }; 94 };
96 95
97 } // namespace ash 96 } // namespace ash
98 97
99 #endif // ASH_MAGNIFIER_PARTIAL_MAGNIFICATION_CONTROLLER_H_ 98 #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