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

Unified Diff: ui/views/controls/native/native_view_host_wrapper.h

Issue 2654413002: Stretching NativeViewHost, and misc tab capture fixes.
Patch Set: Gettin' it all working on ui/cocoa and MacViews too. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/native/native_view_host_mac_unittest.mm ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_wrapper.h
diff --git a/ui/views/controls/native/native_view_host_wrapper.h b/ui/views/controls/native/native_view_host_wrapper.h
index 1f9330b6cfcf476bcb58bb8900442928e516d498..fa6ae7b418a6761e255e0e16e55834d5de0f8e72 100644
--- a/ui/views/controls/native/native_view_host_wrapper.h
+++ b/ui/views/controls/native/native_view_host_wrapper.h
@@ -52,9 +52,16 @@ class VIEWS_EXPORT NativeViewHostWrapper {
// adjusted its position.
virtual void UninstallClip() = 0;
- // Shows the gfx::NativeView at the specified position (relative to the parent
- // native view).
- virtual void ShowWidget(int x, int y, int w, int h) = 0;
+ // Shows the gfx::NativeView within the specified region (relative to the
+ // parent native view) and with the given rendering size. The content will
+ // appear scaled if the |render_w| or |render_h| are different from |w| or
+ // |h|.
+ virtual void ShowWidget(int x,
+ int y,
+ int w,
+ int h,
+ int render_w,
+ int render_h) = 0;
// Hides the gfx::NativeView. NOTE: this may be invoked when the native view
// is already hidden.
« no previous file with comments | « ui/views/controls/native/native_view_host_mac_unittest.mm ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698