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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/PopupZoomer.java

Issue 460453002: Fixed Compilation issues related to API Level of Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed SuppressLint for ClickableViewAccessibility. Created 6 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 import android.graphics.Canvas; 10 import android.graphics.Canvas;
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 527
528 /** 528 /**
529 * Returns true if the point is inside the final drawable area for this popu p zoomer. 529 * Returns true if the point is inside the final drawable area for this popu p zoomer.
530 */ 530 */
531 private boolean isTouchOutsideArea(float x, float y) { 531 private boolean isTouchOutsideArea(float x, float y) {
532 return !mClipRect.contains(x, y); 532 return !mClipRect.contains(x, y);
533 } 533 }
534 534
535 @Override 535 @Override
536 public boolean performClick() {
537 return super.performClick();
aurimas (slooooooooow) 2014/08/12 15:59:44 Why do we need this override? It just calls super.
AKVT 2014/08/12 16:22:40 This is to tackle overrides onTouchEvent but not p
538 }
539
540 @Override
536 public boolean onTouchEvent(MotionEvent event) { 541 public boolean onTouchEvent(MotionEvent event) {
537 mGestureDetector.onTouchEvent(event); 542 mGestureDetector.onTouchEvent(event);
543 if (event.getAction() == MotionEvent.ACTION_UP) {
544 performClick();
aurimas (slooooooooow) 2014/08/12 16:30:21 I guess I did not explain it well. Why don't we ca
545 }
538 return true; 546 return true;
539 } 547 }
540 548
541 private static class ReverseInterpolator implements Interpolator { 549 private static class ReverseInterpolator implements Interpolator {
542 private final Interpolator mInterpolator; 550 private final Interpolator mInterpolator;
543 551
544 public ReverseInterpolator(Interpolator i) { 552 public ReverseInterpolator(Interpolator i) {
545 mInterpolator = i; 553 mInterpolator = i;
546 } 554 }
547 555
548 @Override 556 @Override
549 public float getInterpolation(float input) { 557 public float getInterpolation(float input) {
550 input = 1.0f - input; 558 input = 1.0f - input;
551 if (mInterpolator == null) return input; 559 if (mInterpolator == null) return input;
552 return mInterpolator.getInterpolation(input); 560 return mInterpolator.getInterpolation(input);
553 } 561 }
554 } 562 }
555 } 563 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698