| 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/gfx/canvas.h" | 5 #include "ui/gfx/canvas.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/gfx/font_list.h" | 10 #include "ui/gfx/font_list.h" |
| 11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/geometry/insets.h" |
| 12 #include "ui/gfx/range/range.h" | 12 #include "ui/gfx/range/range.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "ui/gfx/render_text.h" | 14 #include "ui/gfx/render_text.h" |
| 15 #include "ui/gfx/shadow_value.h" | 15 #include "ui/gfx/shadow_value.h" |
| 16 #include "ui/gfx/text_elider.h" | 16 #include "ui/gfx/text_elider.h" |
| 17 #include "ui/gfx/text_utils.h" | 17 #include "ui/gfx/text_utils.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 rect.set_height(line_height); | 401 rect.set_height(line_height); |
| 402 render_text->SetDisplayRect(rect); | 402 render_text->SetDisplayRect(rect); |
| 403 | 403 |
| 404 canvas_->save(); | 404 canvas_->save(); |
| 405 ClipRect(display_rect); | 405 ClipRect(display_rect); |
| 406 render_text->Draw(this); | 406 render_text->Draw(this); |
| 407 canvas_->restore(); | 407 canvas_->restore(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace gfx | 410 } // namespace gfx |
| OLD | NEW |