OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 |
| 5 package org.chromium.chrome.browser.compositor.resources; |
| 6 |
| 7 import android.graphics.Rect; |
| 8 |
| 9 import org.chromium.base.annotations.JNINamespace; |
| 10 |
| 11 /** |
| 12 * Utility class for creating native resources. |
| 13 */ |
| 14 @JNINamespace("android") |
| 15 public class ResourceFactory { |
| 16 public static long createToolbarContainerResource( |
| 17 Rect toolbarPosition, Rect locationBarPosition, int shadowHeight) { |
| 18 return nativeCreateToolbarContainerResource(toolbarPosition.left, toolba
rPosition.top, |
| 19 toolbarPosition.right, toolbarPosition.bottom, locationBarPositi
on.left, |
| 20 locationBarPosition.top, locationBarPosition.right, locationBarP
osition.bottom, |
| 21 shadowHeight); |
| 22 } |
| 23 |
| 24 private static native long nativeCreateToolbarContainerResource(int toolbarL
eft, int toolbarTop, |
| 25 int toolbarRight, int toolbarBottom, int locationBarLeft, int locati
onBarTop, |
| 26 int locationBarRight, int locationBarBottom, int shadowHeight); |
| 27 } |
OLD | NEW |