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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 21777003: DevTools: [Android] implement RenderWidgetHostViewAndroid::CopyFromCompositingSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang bots. Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 gfx::Size GetPhysicalBackingSize() const; 290 gfx::Size GetPhysicalBackingSize() const;
291 gfx::Size GetViewportSizeDip() const; 291 gfx::Size GetViewportSizeDip() const;
292 gfx::Size GetViewportSizeOffsetDip() const; 292 gfx::Size GetViewportSizeOffsetDip() const;
293 float GetOverdrawBottomHeightDip() const; 293 float GetOverdrawBottomHeightDip() const;
294 294
295 void AttachLayer(scoped_refptr<cc::Layer> layer); 295 void AttachLayer(scoped_refptr<cc::Layer> layer);
296 void RemoveLayer(scoped_refptr<cc::Layer> layer); 296 void RemoveLayer(scoped_refptr<cc::Layer> layer);
297 void SetNeedsBeginFrame(bool enabled); 297 void SetNeedsBeginFrame(bool enabled);
298 void SetNeedsAnimate(); 298 void SetNeedsAnimate();
299 299
300 // Captures pixels and compresses them using given |format|,
301 // |quality| and |scale|. |format| should be one of of "jpeg", "png" and
302 // "webp". |scale| is from range (0, 1].
303 bool GrabSnapshot(const std::string& format,
Sami 2013/08/05 16:56:15 Nit: call this CaptureScreenshot for consistency?
304 int quality,
305 double scale,
306 std::vector<uint8>* data);
307
300 private: 308 private:
301 class ContentViewUserData; 309 class ContentViewUserData;
302 310
303 friend class ContentViewUserData; 311 friend class ContentViewUserData;
304 virtual ~ContentViewCoreImpl(); 312 virtual ~ContentViewCoreImpl();
305 313
306 // NotificationObserver implementation. 314 // NotificationObserver implementation.
307 virtual void Observe(int type, 315 virtual void Observe(int type,
308 const NotificationSource& source, 316 const NotificationSource& source,
309 const NotificationDetails& details) OVERRIDE; 317 const NotificationDetails& details) OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ui::WindowAndroid* window_android_; 372 ui::WindowAndroid* window_android_;
365 373
366 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
367 }; 375 };
368 376
369 bool RegisterContentViewCore(JNIEnv* env); 377 bool RegisterContentViewCore(JNIEnv* env);
370 378
371 } // namespace content 379 } // namespace content
372 380
373 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | content/browser/android/content_view_core_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698