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

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

Issue 2616963002: Remove unused Canvas::DrawStringRectWithShadows(). (Closed)
Patch Set: more iwyu Created 3 years, 11 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 | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('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 #include "ash/magnifier/partial_magnification_controller.h" 5 #include "ash/magnifier/partial_magnification_controller.h"
6 6
7 #include "ash/common/system/chromeos/palette/palette_utils.h" 7 #include "ash/common/system/chromeos/palette/palette_utils.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "third_party/skia/include/core/SkDrawLooper.h" 9 #include "third_party/skia/include/core/SkDrawLooper.h"
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
11 #include "ui/aura/window_tree_host.h" 11 #include "ui/aura/window_tree_host.h"
12 #include "ui/compositor/layer.h" 12 #include "ui/compositor/layer.h"
13 #include "ui/compositor/paint_recorder.h" 13 #include "ui/compositor/paint_recorder.h"
14 #include "ui/events/event.h" 14 #include "ui/events/event.h"
15 #include "ui/events/event_constants.h" 15 #include "ui/events/event_constants.h"
16 #include "ui/gfx/shadow_value.h"
16 #include "ui/views/widget/widget.h" 17 #include "ui/views/widget/widget.h"
17 #include "ui/wm/core/coordinate_conversion.h" 18 #include "ui/wm/core/coordinate_conversion.h"
18 19
19 namespace ash { 20 namespace ash {
20 namespace { 21 namespace {
21 22
22 // Ratio of magnifier scale. 23 // Ratio of magnifier scale.
23 const float kMagnificationScale = 2.f; 24 const float kMagnificationScale = 2.f;
24 // Radius of the magnifying glass in DIP. This does not include the thickness 25 // Radius of the magnifying glass in DIP. This does not include the thickness
25 // of the magnifying glass shadow and border. 26 // of the magnifying glass shadow and border.
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 371
371 void PartialMagnificationController::RemoveZoomWidgetObservers() { 372 void PartialMagnificationController::RemoveZoomWidgetObservers() {
372 DCHECK(host_widget_); 373 DCHECK(host_widget_);
373 host_widget_->RemoveObserver(this); 374 host_widget_->RemoveObserver(this);
374 aura::Window* root_window = host_widget_->GetNativeView()->GetRootWindow(); 375 aura::Window* root_window = host_widget_->GetNativeView()->GetRootWindow();
375 DCHECK(root_window); 376 DCHECK(root_window);
376 root_window->RemoveObserver(this); 377 root_window->RemoveObserver(this);
377 } 378 }
378 379
379 } // namespace ash 380 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698