| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/views/animation/ink_drop_factory.h" | |
| 6 | |
| 7 #include "base/macros.h" | |
| 8 #include "base/memory/ptr_util.h" | |
| 9 #include "ui/base/material_design/material_design_controller.h" | |
| 10 #include "ui/gfx/geometry/rect.h" | |
| 11 #include "ui/gfx/geometry/size.h" | |
| 12 #include "ui/views/animation/ink_drop.h" | |
| 13 #include "ui/views/animation/ink_drop_impl.h" | |
| 14 #include "ui/views/animation/ink_drop_stub.h" | |
| 15 #include "ui/views/views_export.h" | |
| 16 | |
| 17 namespace views { | |
| 18 | |
| 19 InkDropFactory::InkDropFactory() {} | |
| 20 | |
| 21 InkDropFactory::~InkDropFactory() {} | |
| 22 | |
| 23 std::unique_ptr<InkDrop> InkDropFactory::CreateInkDrop( | |
| 24 InkDropHost* ink_drop_host) { | |
| 25 if (ui::MaterialDesignController::IsModeMaterial()) { | |
| 26 return base::WrapUnique(new InkDropImpl(ink_drop_host)); | |
| 27 } | |
| 28 | |
| 29 return base::WrapUnique(new InkDropStub()); | |
| 30 } | |
| 31 | |
| 32 } // namespace views | |
| OLD | NEW |