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

Side by Side Diff: chrome/android/java_staging/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerHost.java

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.compositor.layouts;
6
7 import android.content.Context;
8 import android.view.View;
9
10 import org.chromium.chrome.browser.compositor.TitleCache;
11 import org.chromium.chrome.browser.fullscreen.ChromeFullscreenManager;
12 import org.chromium.content.browser.ContentViewCore;
13
14 /**
15 * This is the minimal interface of the host view from the layout side.
16 * Any of these functions may be called on the GL thread.
17 */
18 public interface LayoutManagerHost {
19 /**
20 * If set to true, the time it takes for ContentView to become ready will be
21 * logged to the screen.
22 */
23 static final boolean LOG_CHROME_VIEW_SHOW_TIME = false;
24
25 /**
26 * Requests a refresh of the visuals.
27 */
28 void requestRender();
29
30 /**
31 * @return The Android context of the host view.
32 */
33 Context getContext();
34
35 /**
36 * @see View#getWidth()
37 * @return The width of the host view.
38 */
39 int getWidth();
40
41 /**
42 * @see View#getHeight()
43 * @return The height of the host view.
44 */
45 int getHeight();
46
47 /**
48 * @return The associated {@link LayoutRenderHost} to be used from the GL Th read.
49 */
50 LayoutRenderHost getLayoutRenderHost();
51
52 /**
53 * Sets the visibility of the content overlays.
54 * @param show True if the content overlays should be shown.
55 */
56 void setContentOverlayVisibility(boolean show);
57
58 /**
59 * @return The {@link TitleCache} to use to store title bitmaps.
60 */
61 TitleCache getTitleCache();
62
63 /**
64 * @return The manager in charge of handling fullscreen changes.
65 */
66 ChromeFullscreenManager getFullscreenManager();
67
68 /**
69 * Called when a new {@link ContentViewCore} has been added to the list of c urrent visible
70 * {@link ContentViewCore}s. While this {@link ContentViewCore} might not b e drawing its
71 * contents at this time, it needs to be sized appropriately.
72 * @param content The {@link ContentViewCore} that was added to the current list of visible
73 * {@link ContentViewCore}s.
74 */
75 void onContentViewCoreAdded(ContentViewCore content);
76
77 /**
78 * Called when the currently visible content has been changed.
79 */
80 void onContentChanged();
81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698