| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual float GetDpiScale() const = 0; | 61 virtual float GetDpiScale() const = 0; |
| 62 virtual void PauseVideo() = 0; | 62 virtual void PauseVideo() = 0; |
| 63 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; | 63 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; |
| 64 | 64 |
| 65 // Observer callback for frame metadata updates. | 65 // Observer callback for frame metadata updates. |
| 66 typedef base::Callback<void( | 66 typedef base::Callback<void( |
| 67 const gfx::SizeF& content_size, | 67 const gfx::SizeF& content_size, |
| 68 const gfx::Vector2dF& scroll_offset, | 68 const gfx::Vector2dF& scroll_offset, |
| 69 float page_scale_factor)> UpdateFrameInfoCallback; | 69 float page_scale_factor)> UpdateFrameInfoCallback; |
| 70 | 70 |
| 71 // Text surrounding selection. |
| 72 typedef base::Callback< |
| 73 void(const base::string16& content, int start_offset, int end_offset)> |
| 74 TextSurroundingSelectionCallback; |
| 75 virtual void RequestTextSurroundingSelection( |
| 76 int max_length, |
| 77 const TextSurroundingSelectionCallback& callback) = 0; |
| 78 |
| 71 protected: | 79 protected: |
| 72 virtual ~ContentViewCore() {}; | 80 virtual ~ContentViewCore() {}; |
| 73 }; | 81 }; |
| 74 | 82 |
| 75 }; // namespace content | 83 }; // namespace content |
| 76 | 84 |
| 77 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 85 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
| OLD | NEW |