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( | |
mdjones
2017/03/16 21:01:47
Are we going to do something similar for the crush
David Trainor- moved to gerrit
2017/03/17 07:41:22
I think that (crushed sprite) could go in ui/ sinc
mdjones
2017/03/17 15:38:10
That makes sense, I was thinking about it as part
Khushal
2017/03/17 23:02:58
Yeah. CrushedSprite in next patch. That should be
Khushal
2017/03/17 23:49:44
I looked at CrushedSprite and they are funkier tha
| |
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 |