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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_factory.cc
diff --git a/ui/views/animation/ink_drop_factory.cc b/ui/views/animation/ink_drop_factory.cc
deleted file mode 100644
index 7f896510ae90c2cff9b03bb41816f8ecfe6f3d80..0000000000000000000000000000000000000000
--- a/ui/views/animation/ink_drop_factory.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/animation/ink_drop_factory.h"
-
-#include "base/macros.h"
-#include "base/memory/ptr_util.h"
-#include "ui/base/material_design/material_design_controller.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/views/animation/ink_drop.h"
-#include "ui/views/animation/ink_drop_impl.h"
-#include "ui/views/animation/ink_drop_stub.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-InkDropFactory::InkDropFactory() {}
-
-InkDropFactory::~InkDropFactory() {}
-
-std::unique_ptr<InkDrop> InkDropFactory::CreateInkDrop(
- InkDropHost* ink_drop_host) {
- if (ui::MaterialDesignController::IsModeMaterial()) {
- return base::WrapUnique(new InkDropImpl(ink_drop_host));
- }
-
- return base::WrapUnique(new InkDropStub());
-}
-
-} // namespace views
« 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