| 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/bubble/bubble_border.h" | 5 #include "ui/views/bubble/bubble_border.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "third_party/skia/include/core/SkDrawLooper.h" | 11 #include "third_party/skia/include/core/SkDrawLooper.h" |
| 12 #include "third_party/skia/include/core/SkPaint.h" | 12 #include "third_party/skia/include/core/SkPaint.h" |
| 13 #include "third_party/skia/include/core/SkPath.h" | 13 #include "third_party/skia/include/core/SkPath.h" |
| 14 #include "ui/base/material_design/material_design_controller.h" | 14 #include "ui/base/material_design/material_design_controller.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
| 18 #include "ui/gfx/path.h" | 18 #include "ui/gfx/path.h" |
| 19 #include "ui/gfx/scoped_canvas.h" | 19 #include "ui/gfx/scoped_canvas.h" |
| 20 #include "ui/gfx/shadow_value.h" | 20 #include "ui/gfx/shadow_value.h" |
| 21 #include "ui/gfx/skia_util.h" | 21 #include "ui/gfx/skia_paint_util.h" |
| 22 #include "ui/resources/grit/ui_resources.h" | 22 #include "ui/resources/grit/ui_resources.h" |
| 23 #include "ui/views/painter.h" | 23 #include "ui/views/painter.h" |
| 24 #include "ui/views/resources/grit/views_resources.h" | 24 #include "ui/views/resources/grit/views_resources.h" |
| 25 #include "ui/views/view.h" | 25 #include "ui/views/view.h" |
| 26 | 26 |
| 27 namespace views { | 27 namespace views { |
| 28 | 28 |
| 29 namespace internal { | 29 namespace internal { |
| 30 | 30 |
| 31 BorderImages::BorderImages(const int border_image_ids[], | 31 BorderImages::BorderImages(const int border_image_ids[], |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 paint.setStyle(SkPaint::kFill_Style); | 575 paint.setStyle(SkPaint::kFill_Style); |
| 576 paint.setColor(border_->background_color()); | 576 paint.setColor(border_->background_color()); |
| 577 SkPath path; | 577 SkPath path; |
| 578 gfx::RectF bounds(view->GetLocalBounds()); | 578 gfx::RectF bounds(view->GetLocalBounds()); |
| 579 bounds.Inset(gfx::InsetsF(border_->GetInsets())); | 579 bounds.Inset(gfx::InsetsF(border_->GetInsets())); |
| 580 | 580 |
| 581 canvas->DrawRoundRect(bounds, border_->GetBorderCornerRadius(), paint); | 581 canvas->DrawRoundRect(bounds, border_->GetBorderCornerRadius(), paint); |
| 582 } | 582 } |
| 583 | 583 |
| 584 } // namespace views | 584 } // namespace views |
| OLD | NEW |