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

Side by Side Diff: ui/views/animation/ink_drop_factory.cc

Issue 2067013002: Removed InkDropFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed views:: -> ui:: compile error. Created 4 years, 6 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 | « ui/views/animation/ink_drop_factory.h ('k') | ui/views/animation/ink_drop_factory_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_factory.h ('k') | ui/views/animation/ink_drop_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698