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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/IconMostVisitedItemView.java

Issue 1206673003: Merge java_staging/src into java/src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 months 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698