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

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

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/system/tray/system_tray.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 #include "ash/magnifier/magnification_controller.h" 5 #include "ash/magnifier/magnification_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ui/aura/event_filter.h" 8 #include "ui/aura/event_filter.h"
9 #include "ui/aura/root_window.h" 9 #include "ui/aura/root_window.h"
10 #include "ui/aura/shared/compound_event_filter.h" 10 #include "ui/aura/shared/compound_event_filter.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_property.h" 12 #include "ui/aura/window_property.h"
13 #include "ui/base/event.h" 13 #include "ui/base/events/event.h"
14 #include "ui/gfx/point3.h"
15 #include "ui/gfx/screen.h"
16 #include "ui/compositor/dip_util.h" 14 #include "ui/compositor/dip_util.h"
17 #include "ui/compositor/layer.h" 15 #include "ui/compositor/layer.h"
18 #include "ui/compositor/layer_animation_observer.h" 16 #include "ui/compositor/layer_animation_observer.h"
19 #include "ui/compositor/scoped_layer_animation_settings.h" 17 #include "ui/compositor/scoped_layer_animation_settings.h"
18 #include "ui/gfx/point3.h"
19 #include "ui/gfx/screen.h"
20 20
21 namespace { 21 namespace {
22 22
23 const float kMaxMagnifiedScale = 4.0f; 23 const float kMaxMagnifiedScale = 4.0f;
24 const float kMaxMagnifiedScaleThreshold = 4.0f; 24 const float kMaxMagnifiedScaleThreshold = 4.0f;
25 const float kMinMagnifiedScaleThreshold = 1.1f; 25 const float kMinMagnifiedScaleThreshold = 1.1f;
26 const float kNonMagnifiedScale = 1.0f; 26 const float kNonMagnifiedScale = 1.0f;
27 27
28 const float kInitialMagnifiedScale = 2.0f; 28 const float kInitialMagnifiedScale = 2.0f;
29 const float kScrollScaleChangeFactor = 0.05f; 29 const float kScrollScaleChangeFactor = 0.05f;
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 //////////////////////////////////////////////////////////////////////////////// 461 ////////////////////////////////////////////////////////////////////////////////
462 // MagnificationController: 462 // MagnificationController:
463 463
464 // static 464 // static
465 MagnificationController* MagnificationController::CreateInstance() { 465 MagnificationController* MagnificationController::CreateInstance() {
466 return new MagnificationControllerImpl(); 466 return new MagnificationControllerImpl();
467 } 467 }
468 468
469 } // namespace internal 469 } // namespace internal
470 } // namespace ash 470 } // namespace ash
OLDNEW
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698