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

Unified Diff: ui/base/nine_image_painter_factory.cc

Issue 141123003: Revert of Changes look for scrollbars on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/base/nine_image_painter_factory.h ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/nine_image_painter_factory.cc
diff --git a/ui/base/nine_image_painter_factory.cc b/ui/base/nine_image_painter_factory.cc
deleted file mode 100644
index f544926ce52d2aefc619016ceabc3e79bddde948..0000000000000000000000000000000000000000
--- a/ui/base/nine_image_painter_factory.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2014 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/base/nine_image_painter_factory.h"
-
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/nine_image_painter.h"
-
-namespace ui {
-
-namespace {
-
-std::vector<gfx::ImageSkia> ImageIdsToImages(const int image_ids[]) {
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- std::vector<gfx::ImageSkia> images(9);
- for (size_t i = 0; i < 9; ++i) {
- if (image_ids[i] != 0)
- images[i] = *rb.GetImageSkiaNamed(image_ids[i]);
- }
- return images;
-}
-
-} // namespace
-
-scoped_ptr<gfx::NineImagePainter> CreateNineImagePainter(
- const int image_ids[]) {
- return scoped_ptr<gfx::NineImagePainter>(
- new gfx::NineImagePainter(ImageIdsToImages(image_ids)));
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/nine_image_painter_factory.h ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698