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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/bookmarkswidget/BookmarkWidgetService.java

Issue 1465363002: [Storage] Android - ManageSpace UI, Important Origins, and CBD Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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.bookmarkswidget; 5 package org.chromium.chrome.browser.bookmarkswidget;
6 6
7 import android.appwidget.AppWidgetManager; 7 import android.appwidget.AppWidgetManager;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.SharedPreferences; 10 import android.content.SharedPreferences;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 private int mCornerRadius; 174 private int mCornerRadius;
175 private int mRemainingTaskCount; 175 private int mRemainingTaskCount;
176 176
177 BookmarkLoader(Context context, final BookmarkId folderId, 177 BookmarkLoader(Context context, final BookmarkId folderId,
178 BookmarkLoaderCallback callback) { 178 BookmarkLoaderCallback callback) {
179 mCallback = callback; 179 mCallback = callback;
180 180
181 Resources res = context.getResources(); 181 Resources res = context.getResources();
182 mLargeIconBridge = new LargeIconBridge( 182 mLargeIconBridge = new LargeIconBridge(
183 Profile.getLastUsedProfile().getOriginalProfile()); 183 Profile.getLastUsedProfile().getOriginalProfile());
184 mMinIconSizeDp = (int) res.getDimension(R.dimen.bookmark_item_min_ic on_size); 184 mMinIconSizeDp = (int) res.getDimension(R.dimen.default_favicon_min_ size);
185 mDisplayedIconSize = res.getDimensionPixelSize(R.dimen.bookmark_item _icon_size); 185 mDisplayedIconSize = res.getDimensionPixelSize(R.dimen.default_favic on_size);
186 mCornerRadius = res.getDimensionPixelSize(R.dimen.bookmark_item_corn er_radius); 186 mCornerRadius = res.getDimensionPixelSize(R.dimen.default_favicon_co rner_radius);
187 int textSize = res.getDimensionPixelSize(R.dimen.bookmark_item_icon_ text_size); 187 int textSize = res.getDimensionPixelSize(R.dimen.default_favicon_ico n_text_size);
188 int iconColor = ApiCompatibilityUtils.getColor(res, 188 int iconColor =
189 R.color.bookmark_icon_background_color); 189 ApiCompatibilityUtils.getColor(res, R.color.default_favicon_ background_color);
190 mIconGenerator = new RoundedIconGenerator(mDisplayedIconSize, mDispl ayedIconSize, 190 mIconGenerator = new RoundedIconGenerator(mDisplayedIconSize, mDispl ayedIconSize,
191 mCornerRadius, iconColor, textSize); 191 mCornerRadius, iconColor, textSize);
192 192
193 mRemainingTaskCount = 1; 193 mRemainingTaskCount = 1;
194 mBookmarkModel = new BookmarkModel(); 194 mBookmarkModel = new BookmarkModel();
195 mBookmarkModel.runAfterBookmarkModelLoaded(new Runnable() { 195 mBookmarkModel.runAfterBookmarkModelLoaded(new Runnable() {
196 @Override 196 @Override
197 public void run() { 197 public void run() {
198 loadBookmarks(folderId); 198 loadBookmarks(folderId);
199 } 199 }
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 .setData(Uri.parse(url)); 499 .setData(Uri.parse(url));
500 } else { 500 } else {
501 fillIn = fillIn.addCategory(Intent.CATEGORY_LAUNCHER); 501 fillIn = fillIn.addCategory(Intent.CATEGORY_LAUNCHER);
502 } 502 }
503 } 503 }
504 views.setOnClickFillInIntent(R.id.list_item, fillIn); 504 views.setOnClickFillInIntent(R.id.list_item, fillIn);
505 return views; 505 return views;
506 } 506 }
507 } 507 }
508 } 508 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698