| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual void PauseVideo() = 0; |
| 58 virtual void ResumeVideo() = 0; | 58 virtual void ResumeVideo() = 0; |
| 59 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; | 59 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; |
| 60 virtual void OnDetachedFromWebContents(WebContents* web_contents) = 0; |
| 60 | 61 |
| 61 // Observer callback for frame metadata updates. | 62 // Observer callback for frame metadata updates. |
| 62 typedef base::Callback<void( | 63 typedef base::Callback<void( |
| 63 const gfx::SizeF& content_size, | 64 const gfx::SizeF& content_size, |
| 64 const gfx::Vector2dF& scroll_offset, | 65 const gfx::Vector2dF& scroll_offset, |
| 65 float page_scale_factor)> UpdateFrameInfoCallback; | 66 float page_scale_factor)> UpdateFrameInfoCallback; |
| 66 | 67 |
| 67 protected: | 68 protected: |
| 68 virtual ~ContentViewCore() {}; | 69 virtual ~ContentViewCore() {}; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 }; // namespace content | 72 }; // namespace content |
| 72 | 73 |
| 73 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ | 74 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ |
| OLD | NEW |