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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/resources/ResourceFactory.java

Issue 2752693003: chrome/android: Update toolbar drawing in native. (Closed)
Patch Set: .. Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarControlContainer.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarControlContainer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698