summaryrefslogtreecommitdiff
path: root/chromium/ui/views/bubble/bubble_border.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/bubble/bubble_border.cc')
-rw-r--r--chromium/ui/views/bubble/bubble_border.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chromium/ui/views/bubble/bubble_border.cc b/chromium/ui/views/bubble/bubble_border.cc
index 88e4653b928..60d6ed5ac06 100644
--- a/chromium/ui/views/bubble/bubble_border.cc
+++ b/chromium/ui/views/bubble/bubble_border.cc
@@ -12,7 +12,6 @@
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkDrawLooper.h"
#include "third_party/skia/include/core/SkPath.h"
-#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/geometry/rect.h"
@@ -35,9 +34,6 @@ namespace {
// key the cache.
typedef std::tuple<int, SkColor> ShadowCacheKey;
-// The border corner radius for material design bubble borders.
-constexpr int kMaterialDesignCornerRadius = 2;
-
// The border is stroked at 1px, but for the purposes of reserving space we have
// to deal in dip coordinates, so round up to 1dip.
constexpr int kBorderThicknessDip = 1;
@@ -172,7 +168,8 @@ gfx::Rect BubbleBorder::GetBounds(const gfx::Rect& anchor_rect,
}
int BubbleBorder::GetBorderCornerRadius() const {
- return corner_radius_.value_or(kMaterialDesignCornerRadius);
+ constexpr int kCornerRadius = 2;
+ return corner_radius_.value_or(kCornerRadius);
}
void BubbleBorder::Paint(const views::View& view, gfx::Canvas* canvas) {