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

Unified Diff: views/border.h

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « views/background.cc ('k') | views/border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/border.h
diff --git a/views/border.h b/views/border.h
deleted file mode 100644
index fc7bdc44d93e70383d34c2e219e5ced9d6a4d1a6..0000000000000000000000000000000000000000
--- a/views/border.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_BORDER_H_
-#define VIEWS_BORDER_H_
-#pragma once
-
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/insets.h"
-#include "ui/views/view.h"
-
-namespace gfx{
-class Canvas;
-}
-
-namespace views {
-
-class View;
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// Border class.
-//
-// The border class is used to display a border around a view.
-// To set a border on a view, just call SetBorder on the view, for example:
-// view->set_border(Border::CreateSolidBorder(1, SkColorSetRGB(25, 25, 112));
-// Once set on a view, the border is owned by the view.
-//
-// IMPORTANT NOTE: not all views support borders at this point. In order to
-// support the border, views should make sure to use bounds excluding the
-// border (by calling View::GetLocalBoundsExcludingBorder) when doing layout and
-// painting.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-class VIEWS_EXPORT Border {
- public:
- Border();
- virtual ~Border();
-
- // Creates a border that is a simple line of the specified thickness and
- // color.
- static Border* CreateSolidBorder(int thickness, SkColor color);
-
- // Creates a border for reserving space. The returned border does not
- // paint anything.
- static Border* CreateEmptyBorder(int top, int left, int bottom, int right);
-
- // Renders the border for the specified view.
- virtual void Paint(const View& view, gfx::Canvas* canvas) const = 0;
-
- // Sets the specified insets to the the border insets.
- virtual void GetInsets(gfx::Insets* insets) const = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Border);
-};
-
-} // namespace views
-
-#endif // VIEWS_BORDER_H_
« no previous file with comments | « views/background.cc ('k') | views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698