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

Side by Side Diff: content/shell/android/java/src/org/chromium/content_shell/ShellManager.java

Issue 25040002: Enables fullscreen subtitle and media control from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build_hack
Patch Set: rebased, +option flag Created 7 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.content_shell; 5 package org.chromium.content_shell;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.util.AttributeSet; 8 import android.util.AttributeSet;
9 import android.view.LayoutInflater; 9 import android.view.LayoutInflater;
10 import android.widget.FrameLayout; 10 import android.widget.FrameLayout;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 /** 80 /**
81 * Creates a new shell pointing to the specified URL. 81 * Creates a new shell pointing to the specified URL.
82 * @param url The URL the shell should load upon creation. 82 * @param url The URL the shell should load upon creation.
83 */ 83 */
84 public void launchShell(String url) { 84 public void launchShell(String url) {
85 nativeLaunchShell(url); 85 nativeLaunchShell(url);
86 } 86 }
87 87
88 /**
89 * Enter or leave overlay video mode.
Ted C 2013/12/26 23:06:15 same comment about the missing @param
90 */
91 public void setOverlayVideoMode(boolean enabled) {
92 if (mContentViewRenderView == null) return;
93 mContentViewRenderView.setOverlayVideoMode(enabled);
94 }
95
88 @SuppressWarnings("unused") 96 @SuppressWarnings("unused")
89 @CalledByNative 97 @CalledByNative
90 private Object createShell() { 98 private Object createShell() {
91 assert mContentViewRenderView != null; 99 assert mContentViewRenderView != null;
92 LayoutInflater inflater = 100 LayoutInflater inflater =
93 (LayoutInflater) getContext().getSystemService(Context.LAYOUT_IN FLATER_SERVICE); 101 (LayoutInflater) getContext().getSystemService(Context.LAYOUT_IN FLATER_SERVICE);
94 Shell shellView = (Shell) inflater.inflate(R.layout.shell_view, null); 102 Shell shellView = (Shell) inflater.inflate(R.layout.shell_view, null);
95 shellView.setWindow(mWindow); 103 shellView.setWindow(mWindow);
96 104
97 if (mActiveShell != null) closeShell(mActiveShell); 105 if (mActiveShell != null) closeShell(mActiveShell);
(...skipping 18 matching lines...) Expand all
116 ContentView contentView = shellView.getContentView(); 124 ContentView contentView = shellView.getContentView();
117 if (contentView != null) contentView.onHide(); 125 if (contentView != null) contentView.onHide();
118 shellView.setContentViewRenderView(null); 126 shellView.setContentViewRenderView(null);
119 shellView.setWindow(null); 127 shellView.setWindow(null);
120 removeView(shellView); 128 removeView(shellView);
121 } 129 }
122 130
123 private static native void nativeInit(Object shellManagerInstance); 131 private static native void nativeInit(Object shellManagerInstance);
124 private static native void nativeLaunchShell(String url); 132 private static native void nativeLaunchShell(String url);
125 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698