EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.chrome.browser]

COVERAGE SUMMARY FOR SOURCE FILE [ChromeWebContentsDelegateAndroid.java]

nameclass, %method, %block, %line, %
ChromeWebContentsDelegateAndroid.java100% (1/1)12%  (1/8)7%   (3/43)11%  (1/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ChromeWebContentsDelegateAndroid100% (1/1)12%  (1/8)7%   (3/43)11%  (1/9)
createFindMatchRectsDetails (int, int, RectF): FindMatchRectsDetails 0%   (0/1)0%   (0/8)0%   (0/1)
createFindNotificationDetails (int, Rect, int, boolean): FindNotificationDetails 0%   (0/1)0%   (0/8)0%   (0/1)
createRect (int, int, int, int): Rect 0%   (0/1)0%   (0/8)0%   (0/1)
createRectF (float, float, float, float): RectF 0%   (0/1)0%   (0/8)0%   (0/1)
onFindMatchRectsAvailable (FindMatchRectsDetails): void 0%   (0/1)0%   (0/1)0%   (0/1)
onFindResultAvailable (FindNotificationDetails): void 0%   (0/1)0%   (0/1)0%   (0/1)
setMatchRectByIndex (FindMatchRectsDetails, int, RectF): void 0%   (0/1)0%   (0/6)0%   (0/2)
ChromeWebContentsDelegateAndroid (): void 100% (1/1)100% (3/3)100% (1/1)

1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4 
5package org.chromium.chrome.browser;
6 
7import android.graphics.Rect;
8import android.graphics.RectF;
9 
10import org.chromium.base.CalledByNative;
11import org.chromium.components.web_contents_delegate_android.WebContentsDelegateAndroid;
12 
13/**
14 * Chromium Android specific WebContentsDelegate.
15 * This file is the Java version of the native class of the same name.
16 * It should contain empty WebContentsDelegate methods to be implemented by the embedder.
17 * These methods belong to the Chromium Android port but not to WebView.
18 */
19public class ChromeWebContentsDelegateAndroid extends WebContentsDelegateAndroid {
20 
21    @CalledByNative
22    public void onFindResultAvailable(FindNotificationDetails result) {
23    }
24 
25    @CalledByNative
26    public void onFindMatchRectsAvailable(FindMatchRectsDetails result) {
27    }
28 
29    // Helper functions used to create types that are part of the public interface
30    @CalledByNative
31    private static Rect createRect(int x, int y, int right, int bottom) {
32        return new Rect(x, y, right, bottom);
33    }
34 
35    @CalledByNative
36    private static RectF createRectF(float x, float y, float right, float bottom) {
37        return new RectF(x, y, right, bottom);
38    }
39 
40    @CalledByNative
41    private static FindNotificationDetails createFindNotificationDetails(
42            int numberOfMatches, Rect rendererSelectionRect,
43            int activeMatchOrdinal, boolean finalUpdate) {
44        return new FindNotificationDetails(numberOfMatches, rendererSelectionRect,
45                activeMatchOrdinal, finalUpdate);
46    }
47 
48    @CalledByNative
49    private static FindMatchRectsDetails createFindMatchRectsDetails(
50            int version, int numRects, RectF activeRect) {
51        return new FindMatchRectsDetails(version, new RectF[numRects], activeRect);
52    }
53 
54    @CalledByNative
55    private static void setMatchRectByIndex(
56            FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) {
57        findMatchRectsDetails.rects[index] = rect;
58    }
59}

[all classes][org.chromium.chrome.browser]
EMMA 2.0.5312 (C) Vladimir Roubtsov