OLD | NEW |
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; | 5 package org.chromium.chrome.browser.compositor.layouts; |
6 | 6 |
7 import android.graphics.Rect; | 7 import android.graphics.Rect; |
8 | 8 |
9 import org.chromium.chrome.browser.compositor.layouts.components.LayoutTab; | 9 import org.chromium.chrome.browser.compositor.layouts.components.LayoutTab; |
10 import org.chromium.ui.resources.ResourceManager; | 10 import org.chromium.ui.resources.ResourceManager; |
(...skipping 22 matching lines...) Expand all Loading... |
33 * Indicates that the rendering surface has just been created. | 33 * Indicates that the rendering surface has just been created. |
34 */ | 34 */ |
35 void onSurfaceCreated(); | 35 void onSurfaceCreated(); |
36 | 36 |
37 /** | 37 /** |
38 * Indicates that the rendering surface has been resized. | 38 * Indicates that the rendering surface has been resized. |
39 */ | 39 */ |
40 void onPhysicalBackingSizeChanged(int width, int height); | 40 void onPhysicalBackingSizeChanged(int width, int height); |
41 | 41 |
42 /** | 42 /** |
43 * Indicates that the amount the surface is overdrawing on the bottom has ch
anged. | |
44 * | |
45 * This occurs when the surface is larger than the window viewport. | |
46 * | |
47 * @param overdrawHeight The overdraw amount. | |
48 */ | |
49 void onOverdrawBottomHeightChanged(int overdrawHeight); | |
50 | |
51 /** | |
52 * @see #onOverdrawBottomHeightChanged(int) | |
53 * @return The overdraw bottom height of the last frame rendered by the curr
ent tab. | |
54 */ | |
55 int getCurrentOverdrawBottomHeight(); | |
56 | |
57 /** | |
58 * @return The number of actually drawn {@link LayoutTab}. | 43 * @return The number of actually drawn {@link LayoutTab}. |
59 */ | 44 */ |
60 int getLayoutTabsDrawnCount(); | 45 int getLayoutTabsDrawnCount(); |
61 | 46 |
62 /** | 47 /** |
63 * Pushes a debug rectangle that will be drawn. | 48 * Pushes a debug rectangle that will be drawn. |
64 * | 49 * |
65 * @param rect The rect to be drawn. | 50 * @param rect The rect to be drawn. |
66 * @param color The color of the rect. | 51 * @param color The color of the rect. |
67 */ | 52 */ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 /** | 87 /** |
103 * @return The {@link ResourceManager}. | 88 * @return The {@link ResourceManager}. |
104 */ | 89 */ |
105 ResourceManager getResourceManager(); | 90 ResourceManager getResourceManager(); |
106 | 91 |
107 /** | 92 /** |
108 * Called when something has changed in the Compositor rendered view system. | 93 * Called when something has changed in the Compositor rendered view system. |
109 */ | 94 */ |
110 void invalidateAccessibilityProvider(); | 95 void invalidateAccessibilityProvider(); |
111 } | 96 } |
OLD | NEW |