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

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

Issue 570183002: Make the pause of video playback and video capture consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 2 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Request a scaled content readback. The result is passed through the 53 // Request a scaled content readback. The result is passed through the
54 // callback. The boolean parameter indicates whether the readback was a 54 // callback. The boolean parameter indicates whether the readback was a
55 // success or not. The content is passed through the SkBitmap parameter. 55 // success or not. The content is passed through the SkBitmap parameter.
56 virtual void GetScaledContentBitmap( 56 virtual void GetScaledContentBitmap(
57 float scale, 57 float scale,
58 SkColorType color_type, 58 SkColorType color_type,
59 gfx::Rect src_rect, 59 gfx::Rect src_rect,
60 const base::Callback<void(bool, const SkBitmap&)>& result_callback) = 0; 60 const base::Callback<void(bool, const SkBitmap&)>& result_callback) = 0;
61 virtual float GetDpiScale() const = 0; 61 virtual float GetDpiScale() const = 0;
62 virtual void PauseVideo() = 0;
63 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; 62 virtual void PauseOrResumeGeolocation(bool should_pause) = 0;
64 63
65 // Observer callback for frame metadata updates. 64 // Observer callback for frame metadata updates.
66 typedef base::Callback<void( 65 typedef base::Callback<void(
67 const gfx::SizeF& content_size, 66 const gfx::SizeF& content_size,
68 const gfx::Vector2dF& scroll_offset, 67 const gfx::Vector2dF& scroll_offset,
69 float page_scale_factor)> UpdateFrameInfoCallback; 68 float page_scale_factor)> UpdateFrameInfoCallback;
70 69
71 // Text surrounding selection. 70 // Text surrounding selection.
72 virtual void RequestTextSurroundingSelection( 71 virtual void RequestTextSurroundingSelection(
73 int max_length, 72 int max_length,
74 const base::Callback<void(const base::string16& content, 73 const base::Callback<void(const base::string16& content,
75 int start_offset, 74 int start_offset,
76 int end_offset)>& callback) = 0; 75 int end_offset)>& callback) = 0;
77 76
78 protected: 77 protected:
79 virtual ~ContentViewCore() {}; 78 virtual ~ContentViewCore() {};
80 }; 79 };
81 80
82 }; // namespace content 81 }; // namespace content
83 82
84 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 83 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW
« no previous file with comments | « content/common/media/media_player_messages_android.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