| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/border.h" | 5 #include "ui/views/border.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
| 10 #include "ui/views/painter.h" | 10 #include "ui/views/painter.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 return scoped_ptr<Border>( | 159 return scoped_ptr<Border>( |
| 160 new SidedSolidBorder(top, left, bottom, right, color)); | 160 new SidedSolidBorder(top, left, bottom, right, color)); |
| 161 } | 161 } |
| 162 | 162 |
| 163 // static | 163 // static |
| 164 scoped_ptr<Border> Border::CreateBorderPainter(Painter* painter, | 164 scoped_ptr<Border> Border::CreateBorderPainter(Painter* painter, |
| 165 const gfx::Insets& insets) { | 165 const gfx::Insets& insets) { |
| 166 return scoped_ptr<Border>(new BorderPainter(painter, insets)); | 166 return scoped_ptr<Border>(new BorderPainter(painter, insets)); |
| 167 } | 167 } |
| 168 | 168 |
| 169 TextButtonBorder* Border::AsTextButtonBorder() { | |
| 170 return NULL; | |
| 171 } | |
| 172 | |
| 173 const TextButtonBorder* Border::AsTextButtonBorder() const { | |
| 174 return NULL; | |
| 175 } | |
| 176 | |
| 177 } // namespace views | 169 } // namespace views |
| OLD | NEW |