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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 12443003: Implement out-of-band video compositing on Android: Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 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 | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void ShowImeIfNeeded(JNIEnv* env, jobject obj); 204 void ShowImeIfNeeded(JNIEnv* env, jobject obj);
205 205
206 void ShowInterstitialPage(JNIEnv* env, 206 void ShowInterstitialPage(JNIEnv* env,
207 jobject obj, 207 jobject obj,
208 jstring jurl, 208 jstring jurl,
209 jint delegate); 209 jint delegate);
210 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); 210 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj);
211 211
212 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj); 212 jboolean ConsumePendingRendererFrame(JNIEnv* env, jobject obj);
213 213
214 void AttachExternalVideoSurface(JNIEnv* env,
215 jobject obj,
216 jint player_id,
217 jobject jsurface);
218 void DetachExternalVideoSurface(JNIEnv* env, jobject obj, jint player_id);
219
214 // -------------------------------------------------------------------------- 220 // --------------------------------------------------------------------------
215 // Public methods that call to Java via JNI 221 // Public methods that call to Java via JNI
216 // -------------------------------------------------------------------------- 222 // --------------------------------------------------------------------------
217 223
218 // Creates a popup menu with |items|. 224 // Creates a popup menu with |items|.
219 // |multiple| defines if it should support multi-select. 225 // |multiple| defines if it should support multi-select.
220 // If not |multiple|, |selected_item| sets the initially selected item. 226 // If not |multiple|, |selected_item| sets the initially selected item.
221 // Otherwise, item's "checked" flag selects it. 227 // Otherwise, item's "checked" flag selects it.
222 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, 228 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items,
223 int selected_item, 229 int selected_item,
(...skipping 27 matching lines...) Expand all
251 const ViewHostMsg_SelectionBounds_Params& params); 257 const ViewHostMsg_SelectionBounds_Params& params);
252 258
253 void StartContentIntent(const GURL& content_url); 259 void StartContentIntent(const GURL& content_url);
254 260
255 // Shows the disambiguation popup 261 // Shows the disambiguation popup
256 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 262 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
257 // |zoomed_bitmap| --> magnified image of potential touch targets 263 // |zoomed_bitmap| --> magnified image of potential touch targets
258 void ShowDisambiguationPopup( 264 void ShowDisambiguationPopup(
259 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 265 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
260 266
267 void RequestExternalVideoSurface(int player_id);
268
261 // -------------------------------------------------------------------------- 269 // --------------------------------------------------------------------------
262 // Methods called from native code 270 // Methods called from native code
263 // -------------------------------------------------------------------------- 271 // --------------------------------------------------------------------------
264 272
265 gfx::Size GetPhysicalBackingSize() const; 273 gfx::Size GetPhysicalBackingSize() const;
266 gfx::Size GetViewportSizeDip() const; 274 gfx::Size GetViewportSizeDip() const;
267 275
268 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); 276 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event);
269 277
270 void AttachLayer(scoped_refptr<cc::Layer> layer); 278 void AttachLayer(scoped_refptr<cc::Layer> layer);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 scoped_ptr<SyncInputEventFilter> input_event_filter_; 346 scoped_ptr<SyncInputEventFilter> input_event_filter_;
339 347
340 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 348 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
341 }; 349 };
342 350
343 bool RegisterContentViewCore(JNIEnv* env); 351 bool RegisterContentViewCore(JNIEnv* env);
344 352
345 } // namespace content 353 } // namespace content
346 354
347 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 355 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698