OLD | NEW |
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" | |
8 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/palette/palette_utils.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/gfx/shadow_value.h" |
17 #include "ui/gfx/skia_paint_util.h" | 17 #include "ui/gfx/skia_paint_util.h" |
18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 void PartialMagnificationController::RemoveZoomWidgetObservers() { | 374 void PartialMagnificationController::RemoveZoomWidgetObservers() { |
375 DCHECK(host_widget_); | 375 DCHECK(host_widget_); |
376 host_widget_->RemoveObserver(this); | 376 host_widget_->RemoveObserver(this); |
377 aura::Window* root_window = host_widget_->GetNativeView()->GetRootWindow(); | 377 aura::Window* root_window = host_widget_->GetNativeView()->GetRootWindow(); |
378 DCHECK(root_window); | 378 DCHECK(root_window); |
379 root_window->RemoveObserver(this); | 379 root_window->RemoveObserver(this); |
380 } | 380 } |
381 | 381 |
382 } // namespace ash | 382 } // namespace ash |
OLD | NEW |