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

Side by Side Diff: content/public/browser/android/content_view_core.h

Issue 23464080: [Android] Decouple pausing video from RenderView pause. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 3 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_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual scoped_refptr<cc::Layer> GetLayer() const = 0; 47 virtual scoped_refptr<cc::Layer> GetLayer() const = 0;
48 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0; 48 virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0;
49 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0; 49 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) = 0;
50 virtual void ShowPastePopup(int x, int y) = 0; 50 virtual void ShowPastePopup(int x, int y) = 0;
51 virtual unsigned int GetScaledContentTexture( 51 virtual unsigned int GetScaledContentTexture(
52 float scale, 52 float scale,
53 gfx::Size* out_size) = 0; 53 gfx::Size* out_size) = 0;
54 virtual float GetDpiScale() const = 0; 54 virtual float GetDpiScale() const = 0;
55 virtual void RequestContentClipping(const gfx::Rect& clipping, 55 virtual void RequestContentClipping(const gfx::Rect& clipping,
56 const gfx::Size& content_size) = 0; 56 const gfx::Size& content_size) = 0;
57 virtual void PauseVideo() = 0;
57 58
58 // Observer callback for frame metadata updates. 59 // Observer callback for frame metadata updates.
59 typedef base::Callback<void( 60 typedef base::Callback<void(
60 const gfx::SizeF& content_size, 61 const gfx::SizeF& content_size,
61 const gfx::Vector2dF& scroll_offset, 62 const gfx::Vector2dF& scroll_offset,
62 float page_scale_factor)> UpdateFrameInfoCallback; 63 float page_scale_factor)> UpdateFrameInfoCallback;
63 64
64 protected: 65 protected:
65 virtual ~ContentViewCore() {}; 66 virtual ~ContentViewCore() {};
66 }; 67 };
67 68
68 }; // namespace content 69 }; // namespace content
69 70
70 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 71 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/media/android/renderer_media_player_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698