OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 package org.chromium.chrome.browser.ntp; | 5 package org.chromium.chrome.browser.ntp; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.graphics.Canvas; | 8 import android.graphics.Canvas; |
9 import android.graphics.Paint; | 9 import android.graphics.Paint; |
10 import android.graphics.RectF; | 10 import android.graphics.RectF; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 highlightPaint.setColor(HIGHLIGHT_COLOR); | 64 highlightPaint.setColor(HIGHLIGHT_COLOR); |
65 highlightPaint.setAntiAlias(true); | 65 highlightPaint.setAntiAlias(true); |
66 RectF highlightRect = new RectF(0, 0, getWidth(), getHeight()); | 66 RectF highlightRect = new RectF(0, 0, getWidth(), getHeight()); |
67 int cornerRadius = getResources().getDimensionPixelOffset( | 67 int cornerRadius = getResources().getDimensionPixelOffset( |
68 R.dimen.most_visited_bg_corner_radius); | 68 R.dimen.most_visited_bg_corner_radius); |
69 canvas.drawRoundRect(highlightRect, cornerRadius, cornerRadius, high
lightPaint); | 69 canvas.drawRoundRect(highlightRect, cornerRadius, cornerRadius, high
lightPaint); |
70 } | 70 } |
71 mLastDrawnPressed = isPressed(); | 71 mLastDrawnPressed = isPressed(); |
72 } | 72 } |
73 } | 73 } |
OLD | NEW |