| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/views/animation/ink_drop_animation_controller_factory.h" | 5 #include "ui/views/animation/ink_drop_animation_controller_factory.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "ui/base/resource/material_design/material_design_controller.h" | 8 #include "ui/base/resource/material_design/material_design_controller.h" |
| 8 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 9 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| 10 #include "ui/views/animation/ink_drop_animation_controller.h" | 11 #include "ui/views/animation/ink_drop_animation_controller.h" |
| 11 #include "ui/views/animation/ink_drop_animation_controller_impl.h" | 12 #include "ui/views/animation/ink_drop_animation_controller_impl.h" |
| 12 #include "ui/views/views_export.h" | 13 #include "ui/views/views_export.h" |
| 13 | 14 |
| 14 namespace views { | 15 namespace views { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (ui::MaterialDesignController::IsModeMaterial()) { | 72 if (ui::MaterialDesignController::IsModeMaterial()) { |
| 72 return scoped_ptr<InkDropAnimationController>( | 73 return scoped_ptr<InkDropAnimationController>( |
| 73 new InkDropAnimationControllerImpl(ink_drop_host)); | 74 new InkDropAnimationControllerImpl(ink_drop_host)); |
| 74 } | 75 } |
| 75 | 76 |
| 76 return scoped_ptr<InkDropAnimationController>( | 77 return scoped_ptr<InkDropAnimationController>( |
| 77 new InkDropAnimationControllerStub()); | 78 new InkDropAnimationControllerStub()); |
| 78 } | 79 } |
| 79 | 80 |
| 80 } // namespace views | 81 } // namespace views |
| OLD | NEW |