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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 2575533002: SkClipOp is an enum class now (Closed)
Patch Set: Created 4 years 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 | « chrome/browser/ui/views/tabs/tab.cc ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 610bf98c302cf0e0ff4ef89a050480360b0248e2..97c0a8f48d4efb12c2548c42284c229a867b3b81 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -398,7 +398,7 @@ void NewTabButton::OnPaint(gfx::Canvas* canvas) {
canvas->ClipPath(stroke, true);
Op(stroke, fill, kDifference_SkPathOp, &stroke);
if (!pressed)
- canvas->sk_canvas()->clipPath(fill, kDifference_SkClipOp, true);
+ canvas->sk_canvas()->clipPath(fill, SkClipOp::kDifference, true);
// Now draw the stroke and shadow; the stroke will always be visible, while
// the shadow will be affected by the clip we set above.
SkPaint paint;
@@ -1472,7 +1472,7 @@ void TabStrip::PaintChildren(const ui::PaintContext& context) {
if (active_tab) {
canvas->sk_canvas()->clipRect(
gfx::RectToSkRect(active_tab->GetMirroredBounds()),
- kDifference_SkClipOp);
+ SkClipOp::kDifference);
}
BrowserView::Paint1pxHorizontalLine(canvas, GetToolbarTopSeparatorColor(),
GetLocalBounds(), true);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698