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

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

Issue 600983002: [Checkstyle] Fix misc style issues in Java files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 3 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.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.SearchManager; 9 import android.app.SearchManager;
10 import android.content.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 2811 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 // as long as OEM has a UI that consumes all the inputs and waits until the 2822 // as long as OEM has a UI that consumes all the inputs and waits until the
2823 // callback is called, then there shouldn't be any difference. 2823 // callback is called, then there shouldn't be any difference.
2824 // TODO(changwan): once crbug.com/416432 is resolved, try to pass offset s as 2824 // TODO(changwan): once crbug.com/416432 is resolved, try to pass offset s as
2825 // separate params for extractSmartClipData(), and apply them not the ne w offset 2825 // separate params for extractSmartClipData(), and apply them not the ne w offset
2826 // values in the callback. 2826 // values in the callback.
2827 final float deviceScale = mRenderCoordinates.getDeviceScaleFactor(); 2827 final float deviceScale = mRenderCoordinates.getDeviceScaleFactor();
2828 final int offsetXInDp = (int) (mSmartClipOffsetX / deviceScale); 2828 final int offsetXInDp = (int) (mSmartClipOffsetX / deviceScale);
2829 final int offsetYInDp = (int) (mSmartClipOffsetY / deviceScale); 2829 final int offsetYInDp = (int) (mSmartClipOffsetY / deviceScale);
2830 clipRect.offset(-offsetXInDp, -offsetYInDp); 2830 clipRect.offset(-offsetXInDp, -offsetYInDp);
2831 2831
2832 if (mSmartClipDataListener != null ) { 2832 if (mSmartClipDataListener != null) {
2833 mSmartClipDataListener.onSmartClipDataExtracted(text, html, clipRect ); 2833 mSmartClipDataListener.onSmartClipDataExtracted(text, html, clipRect );
2834 } 2834 }
2835 } 2835 }
2836 2836
2837 public void setSmartClipDataListener(SmartClipDataListener listener) { 2837 public void setSmartClipDataListener(SmartClipDataListener listener) {
2838 mSmartClipDataListener = listener; 2838 mSmartClipDataListener = listener;
2839 } 2839 }
2840 2840
2841 public void setBackgroundOpaque(boolean opaque) { 2841 public void setBackgroundOpaque(boolean opaque) {
2842 if (mNativeContentViewCore != 0) { 2842 if (mNativeContentViewCore != 0) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3015 private native void nativeWasResized(long nativeContentViewCoreImpl); 3015 private native void nativeWasResized(long nativeContentViewCoreImpl);
3016 3016
3017 private native void nativeSetAccessibilityEnabled( 3017 private native void nativeSetAccessibilityEnabled(
3018 long nativeContentViewCoreImpl, boolean enabled); 3018 long nativeContentViewCoreImpl, boolean enabled);
3019 3019
3020 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3020 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3021 int x, int y, int w, int h); 3021 int x, int y, int w, int h);
3022 3022
3023 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3023 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3024 } 3024 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698