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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkRow.java

Issue 1894703002: [Offline pages] Removing offline pages from Bookmarks UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback from Ian, fixing compilation issue Created 4 years, 8 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.bookmarks; 5 package org.chromium.chrome.browser.bookmarks;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.util.AttributeSet; 8 import android.util.AttributeSet;
9 import android.view.View; 9 import android.view.View;
10 import android.view.View.OnClickListener; 10 import android.view.View.OnClickListener;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 public void onItemClick(AdapterView<?> parent, View view, int po sition, 150 public void onItemClick(AdapterView<?> parent, View view, int po sition,
151 long id) { 151 long id) {
152 if (position == 0) { 152 if (position == 0) {
153 setChecked(mDelegate.toggleSelectionForBookmark(mBookmar kId)); 153 setChecked(mDelegate.toggleSelectionForBookmark(mBookmar kId));
154 } else if (position == 1) { 154 } else if (position == 1) {
155 BookmarkItem item = mDelegate.getModel().getBookmarkById (mBookmarkId); 155 BookmarkItem item = mDelegate.getModel().getBookmarkById (mBookmarkId);
156 if (item.isFolder()) { 156 if (item.isFolder()) {
157 BookmarkAddEditFolderActivity.startEditFolderActivit y( 157 BookmarkAddEditFolderActivity.startEditFolderActivit y(
158 getContext(), item.getId()); 158 getContext(), item.getId());
159 } else { 159 } else {
160 BookmarkUtils.startEditActivity( 160 BookmarkUtils.startEditActivity(getContext(), item.g etId());
161 getContext(), item.getId(), null);
162 } 161 }
163 } else if (position == 2) { 162 } else if (position == 2) {
164 BookmarkFolderSelectActivity.startFolderSelectActivity(g etContext(), 163 BookmarkFolderSelectActivity.startFolderSelectActivity(g etContext(),
165 mBookmarkId); 164 mBookmarkId);
166 } else if (position == 3) { 165 } else if (position == 3) {
167 if (mDelegate != null && mDelegate.getModel() != null) { 166 if (mDelegate != null && mDelegate.getModel() != null) {
168 mDelegate.getModel().deleteBookmarks(mBookmarkId); 167 mDelegate.getModel().deleteBookmarks(mBookmarkId);
169 } 168 }
170 } 169 }
171 // Somehow the on click event can be triggered way after we dismiss the popup. 170 // Somehow the on click event can be triggered way after we dismiss the popup.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 273
275 @Override 274 @Override
276 public void onAllBookmarksStateSet() { 275 public void onAllBookmarksStateSet() {
277 } 276 }
278 277
279 @Override 278 @Override
280 public void onFolderStateSet(BookmarkId folder) { 279 public void onFolderStateSet(BookmarkId folder) {
281 } 280 }
282 281
283 @Override 282 @Override
284 public void onFilterStateSet(BookmarkFilter filter) {
285 }
286
287 @Override
288 public void onSelectionStateChange(List<BookmarkId> selectedBookmarks) { 283 public void onSelectionStateChange(List<BookmarkId> selectedBookmarks) {
289 updateSelectionState(); 284 updateSelectionState();
290 } 285 }
291 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698