OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
289 gfx::Size GetPhysicalBackingSize() const; | 289 gfx::Size GetPhysicalBackingSize() const; |
290 gfx::Size GetViewportSizeDip() const; | 290 gfx::Size GetViewportSizeDip() const; |
291 gfx::Size GetViewportSizeOffsetDip() const; | 291 gfx::Size GetViewportSizeOffsetDip() const; |
292 float GetOverdrawBottomHeightDip() const; | 292 float GetOverdrawBottomHeightDip() const; |
293 | 293 |
294 void AttachLayer(scoped_refptr<cc::Layer> layer); | 294 void AttachLayer(scoped_refptr<cc::Layer> layer); |
295 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 295 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
296 void SetNeedsBeginFrame(bool enabled); | 296 void SetNeedsBeginFrame(bool enabled); |
297 void SetNeedsAnimate(); | 297 void SetNeedsAnimate(); |
298 | 298 |
299 bool GrabSnapshot(std::vector<unsigned uint8>* png); | |
Sami
2013/08/02 10:53:23
_unsigned_ uint8 seems a little redundant :)
pfeldman
2013/08/02 12:25:30
Heh :) I copy-pasted it from somewhere and then de
| |
300 | |
299 private: | 301 private: |
300 class ContentViewUserData; | 302 class ContentViewUserData; |
301 | 303 |
302 friend class ContentViewUserData; | 304 friend class ContentViewUserData; |
303 virtual ~ContentViewCoreImpl(); | 305 virtual ~ContentViewCoreImpl(); |
304 | 306 |
305 // NotificationObserver implementation. | 307 // NotificationObserver implementation. |
306 virtual void Observe(int type, | 308 virtual void Observe(int type, |
307 const NotificationSource& source, | 309 const NotificationSource& source, |
308 const NotificationDetails& details) OVERRIDE; | 310 const NotificationDetails& details) OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
363 ui::WindowAndroid* window_android_; | 365 ui::WindowAndroid* window_android_; |
364 | 366 |
365 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 367 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
366 }; | 368 }; |
367 | 369 |
368 bool RegisterContentViewCore(JNIEnv* env); | 370 bool RegisterContentViewCore(JNIEnv* env); |
369 | 371 |
370 } // namespace content | 372 } // namespace content |
371 | 373 |
372 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 374 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |