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

Unified Diff: ui/gfx/nine_image_painter.h

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/gfx/gfx.gyp ('k') | ui/gfx/nine_image_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/nine_image_painter.h
diff --git a/ui/gfx/nine_image_painter.h b/ui/gfx/nine_image_painter.h
deleted file mode 100644
index 34a0cfa6c67d76d11a704852bc999be1b9adfbc8..0000000000000000000000000000000000000000
--- a/ui/gfx/nine_image_painter.h
+++ /dev/null
@@ -1,49 +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.
-
-#ifndef UI_GFX_NINE_IMAGE_PAINTER_H_
-#define UI_GFX_NINE_IMAGE_PAINTER_H_
-
-#include "base/logging.h"
-#include "ui/gfx/gfx_export.h"
-#include "ui/gfx/image/image_skia.h"
-
-namespace gfx {
-
-class Canvas;
-class Insets;
-class Rect;
-
-class GFX_EXPORT NineImagePainter {
- public:
- explicit NineImagePainter(const std::vector<ImageSkia>& images);
- NineImagePainter(const ImageSkia& image, const Insets& insets);
- ~NineImagePainter();
-
- bool IsEmpty() const;
- Size GetMinimumSize() const;
- void Paint(Canvas* canvas, const Rect& bounds);
-
- private:
- // Stretches the given image over the specified canvas area.
- static void Fill(Canvas* c,
- const ImageSkia& i,
- int x,
- int y,
- int w,
- int h);
-
- // Images are numbered as depicted below.
- // ____________________
- // |__i0__|__i1__|__i2__|
- // |__i3__|__i4__|__i5__|
- // |__i6__|__i7__|__i8__|
- ImageSkia images_[9];
-
- DISALLOW_COPY_AND_ASSIGN(NineImagePainter);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_NINE_IMAGE_PAINTER_H_
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/nine_image_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698