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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/components/LayoutTab.java

Issue 987883002: Upstream Layout.java and associated files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move to SuppressFBWarnings from findbugs_exclude.xml Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.chrome.browser.compositor.layouts.components; 5 package org.chromium.chrome.browser.compositor.layouts.components;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 import android.graphics.Color; 9 import android.graphics.Color;
10 import android.graphics.RectF; 10 import android.graphics.RectF;
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 869
870 /** 870 /**
871 * @return The id of a snapshot that would be acceptable to use if the snaps hot for this tab 871 * @return The id of a snapshot that would be acceptable to use if the snaps hot for this tab
872 * is unavailable. 872 * is unavailable.
873 */ 873 */
874 public int getFallbackThumbnailId() { 874 public int getFallbackThumbnailId() {
875 return mFallbackThumbnailId; 875 return mFallbackThumbnailId;
876 } 876 }
877 877
878 /** 878 /**
879 * Callback for {@link com.google.android.apps.chrome.ChromeAnimation.Animat able} 879 * Callback for
880 * {@link org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Ani matable}
880 * 881 *
881 * @param prop The property to set 882 * @param prop The property to set
882 * @param val The value to set it to 883 * @param val The value to set it to
883 */ 884 */
884 @Override 885 @Override
885 public void setProperty(Property prop, float val) { 886 public void setProperty(Property prop, float val) {
886 switch (prop) { 887 switch (prop) {
887 case BORDER_ALPHA: 888 case BORDER_ALPHA:
888 setBorderAlpha(val); 889 setBorderAlpha(val);
889 break; 890 break;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 break; 929 break;
929 case TOOLBAR_Y_OFFSET: 930 case TOOLBAR_Y_OFFSET:
930 setToolbarYOffset(val); 931 setToolbarYOffset(val);
931 break; 932 break;
932 case SIDE_BORDER_SCALE: 933 case SIDE_BORDER_SCALE:
933 setSideBorderScale(val); 934 setSideBorderScale(val);
934 break; 935 break;
935 } 936 }
936 } 937 }
937 } 938 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698