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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 1065413002: <webview>: Don't reset allowtransparency and allowscaling between createGuest and attachGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: extensions/browser/guest_view/web_view/web_view_guest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h
index d6f3e3291773a6e91af83a6b162ee90a7619da55..34f5df959a9848a05fba9a318c079cb5b78a2beb 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -89,9 +89,11 @@ class WebViewGuest : public GuestView<WebViewGuest>,
void SetZoomMode(ui_zoom::ZoomController::ZoomMode zoom_mode);
void SetAllowScaling(bool allow);
+ bool allow_scaling() const { return allow_scaling_; }
// Sets the transparency of the guest.
void SetAllowTransparency(bool allow);
+ bool allow_transparency() const { return allow_transparency_; }
// Loads a data URL with a specified base URL and virtual URL.
bool LoadDataWithBaseURL(const std::string& data_url,
@@ -364,7 +366,7 @@ class WebViewGuest : public GuestView<WebViewGuest>,
std::string name_;
// Stores whether the contents of the guest can be transparent.
- bool guest_opaque_;
+ bool allow_transparency_;
// Stores the src URL of the WebView.
GURL src_;

Powered by Google App Engine
This is Rietveld 408576698