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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

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, let's go! Created 6 years, 11 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 (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_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Returns the Java Surface object for a given view surface id. 47 // Returns the Java Surface object for a given view surface id.
48 static jobject GetSurface(int surface_id); 48 static jobject GetSurface(int surface_id);
49 49
50 // Compositor implementation. 50 // Compositor implementation.
51 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE; 51 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE;
52 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; 52 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE;
53 virtual void SetSurface(jobject surface) OVERRIDE; 53 virtual void SetSurface(jobject surface) OVERRIDE;
54 virtual void SetVisible(bool visible) OVERRIDE; 54 virtual void SetVisible(bool visible) OVERRIDE;
55 virtual void setDeviceScaleFactor(float factor) OVERRIDE; 55 virtual void setDeviceScaleFactor(float factor) OVERRIDE;
56 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; 56 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE;
57 virtual void SetHasTransparentBackground(bool flag) OVERRIDE;
57 virtual bool CompositeAndReadback( 58 virtual bool CompositeAndReadback(
58 void *pixels, const gfx::Rect& rect) OVERRIDE; 59 void *pixels, const gfx::Rect& rect) OVERRIDE;
59 virtual void Composite() OVERRIDE; 60 virtual void Composite() OVERRIDE;
60 virtual cc::UIResourceId GenerateUIResource( 61 virtual cc::UIResourceId GenerateUIResource(
61 const cc::UIResourceBitmap& bitmap) OVERRIDE; 62 const cc::UIResourceBitmap& bitmap) OVERRIDE;
62 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE; 63 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE;
63 virtual blink::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE; 64 virtual blink::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) OVERRIDE;
64 virtual blink::WebGLId GenerateCompressedTexture( 65 virtual blink::WebGLId GenerateCompressedTexture(
65 gfx::Size& size, int data_size, void* data) OVERRIDE; 66 gfx::Size& size, int data_size, void* data) OVERRIDE;
66 virtual void DeleteTexture(blink::WebGLId texture_id) OVERRIDE; 67 virtual void DeleteTexture(blink::WebGLId texture_id) OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 UIResourceMap ui_resource_map_; 120 UIResourceMap ui_resource_map_;
120 121
121 gfx::NativeWindow root_window_; 122 gfx::NativeWindow root_window_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 124 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
124 }; 125 };
125 126
126 } // namespace content 127 } // namespace content
127 128
128 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 129 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698