refactor: inline simple getters (#41125)
This commit is contained in:
parent
4e19321ba8
commit
ffec3127d5
17 changed files with 93 additions and 192 deletions
|
@ -89,55 +89,6 @@ gin::Handle<Notification> Notification::New(gin_helper::ErrorThrower thrower,
|
||||||
return gin::CreateHandle(thrower.isolate(), new Notification(args));
|
return gin::CreateHandle(thrower.isolate(), new Notification(args));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
|
||||||
std::u16string Notification::GetTitle() const {
|
|
||||||
return title_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetSubtitle() const {
|
|
||||||
return subtitle_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetBody() const {
|
|
||||||
return body_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Notification::GetSilent() const {
|
|
||||||
return silent_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Notification::GetHasReply() const {
|
|
||||||
return has_reply_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetTimeoutType() const {
|
|
||||||
return timeout_type_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetReplyPlaceholder() const {
|
|
||||||
return reply_placeholder_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetSound() const {
|
|
||||||
return sound_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetUrgency() const {
|
|
||||||
return urgency_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<electron::NotificationAction> Notification::GetActions() const {
|
|
||||||
return actions_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetCloseButtonText() const {
|
|
||||||
return close_button_text_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::u16string Notification::GetToastXml() const {
|
|
||||||
return toast_xml_;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Setters
|
// Setters
|
||||||
void Notification::SetTitle(const std::u16string& new_title) {
|
void Notification::SetTitle(const std::u16string& new_title) {
|
||||||
title_ = new_title;
|
title_ = new_title;
|
||||||
|
@ -263,25 +214,23 @@ void Notification::FillObjectTemplate(v8::Isolate* isolate,
|
||||||
gin::ObjectTemplateBuilder(isolate, GetClassName(), templ)
|
gin::ObjectTemplateBuilder(isolate, GetClassName(), templ)
|
||||||
.SetMethod("show", &Notification::Show)
|
.SetMethod("show", &Notification::Show)
|
||||||
.SetMethod("close", &Notification::Close)
|
.SetMethod("close", &Notification::Close)
|
||||||
.SetProperty("title", &Notification::GetTitle, &Notification::SetTitle)
|
.SetProperty("title", &Notification::title, &Notification::SetTitle)
|
||||||
.SetProperty("subtitle", &Notification::GetSubtitle,
|
.SetProperty("subtitle", &Notification::subtitle,
|
||||||
&Notification::SetSubtitle)
|
&Notification::SetSubtitle)
|
||||||
.SetProperty("body", &Notification::GetBody, &Notification::SetBody)
|
.SetProperty("body", &Notification::body, &Notification::SetBody)
|
||||||
.SetProperty("silent", &Notification::GetSilent, &Notification::SetSilent)
|
.SetProperty("silent", &Notification::is_silent, &Notification::SetSilent)
|
||||||
.SetProperty("hasReply", &Notification::GetHasReply,
|
.SetProperty("hasReply", &Notification::has_reply,
|
||||||
&Notification::SetHasReply)
|
&Notification::SetHasReply)
|
||||||
.SetProperty("timeoutType", &Notification::GetTimeoutType,
|
.SetProperty("timeoutType", &Notification::timeout_type,
|
||||||
&Notification::SetTimeoutType)
|
&Notification::SetTimeoutType)
|
||||||
.SetProperty("replyPlaceholder", &Notification::GetReplyPlaceholder,
|
.SetProperty("replyPlaceholder", &Notification::reply_placeholder,
|
||||||
&Notification::SetReplyPlaceholder)
|
&Notification::SetReplyPlaceholder)
|
||||||
.SetProperty("urgency", &Notification::GetUrgency,
|
.SetProperty("urgency", &Notification::urgency, &Notification::SetUrgency)
|
||||||
&Notification::SetUrgency)
|
.SetProperty("sound", &Notification::sound, &Notification::SetSound)
|
||||||
.SetProperty("sound", &Notification::GetSound, &Notification::SetSound)
|
.SetProperty("actions", &Notification::actions, &Notification::SetActions)
|
||||||
.SetProperty("actions", &Notification::GetActions,
|
.SetProperty("closeButtonText", &Notification::close_button_text,
|
||||||
&Notification::SetActions)
|
|
||||||
.SetProperty("closeButtonText", &Notification::GetCloseButtonText,
|
|
||||||
&Notification::SetCloseButtonText)
|
&Notification::SetCloseButtonText)
|
||||||
.SetProperty("toastXml", &Notification::GetToastXml,
|
.SetProperty("toastXml", &Notification::toast_xml,
|
||||||
&Notification::SetToastXml)
|
&Notification::SetToastXml)
|
||||||
.Build();
|
.Build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,18 +67,20 @@ class Notification : public gin::Wrappable<Notification>,
|
||||||
void Close();
|
void Close();
|
||||||
|
|
||||||
// Prop Getters
|
// Prop Getters
|
||||||
std::u16string GetTitle() const;
|
const std::u16string& title() const { return title_; }
|
||||||
std::u16string GetSubtitle() const;
|
const std::u16string& subtitle() const { return subtitle_; }
|
||||||
std::u16string GetBody() const;
|
const std::u16string& body() const { return body_; }
|
||||||
bool GetSilent() const;
|
bool is_silent() const { return silent_; }
|
||||||
bool GetHasReply() const;
|
bool has_reply() const { return has_reply_; }
|
||||||
std::u16string GetTimeoutType() const;
|
const std::u16string& timeout_type() const { return timeout_type_; }
|
||||||
std::u16string GetReplyPlaceholder() const;
|
const std::u16string& reply_placeholder() const { return reply_placeholder_; }
|
||||||
std::u16string GetUrgency() const;
|
const std::u16string& urgency() const { return urgency_; }
|
||||||
std::u16string GetSound() const;
|
const std::u16string& sound() const { return sound_; }
|
||||||
std::vector<electron::NotificationAction> GetActions() const;
|
const std::vector<electron::NotificationAction>& actions() const {
|
||||||
std::u16string GetCloseButtonText() const;
|
return actions_;
|
||||||
std::u16string GetToastXml() const;
|
}
|
||||||
|
const std::u16string& close_button_text() const { return close_button_text_; }
|
||||||
|
const std::u16string& toast_xml() const { return toast_xml_; }
|
||||||
|
|
||||||
// Prop Setters
|
// Prop Setters
|
||||||
void SetTitle(const std::u16string& new_title);
|
void SetTitle(const std::u16string& new_title);
|
||||||
|
|
|
@ -384,14 +384,6 @@ bool ElectronBrowserContext::IsOffTheRecord() {
|
||||||
return in_memory_;
|
return in_memory_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ElectronBrowserContext::CanUseHttpCache() const {
|
|
||||||
return use_cache_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ElectronBrowserContext::GetMaxCacheSize() const {
|
|
||||||
return max_cache_size_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ElectronBrowserContext::GetMediaDeviceIDSalt() {
|
std::string ElectronBrowserContext::GetMediaDeviceIDSalt() {
|
||||||
if (!media_device_id_salt_.get())
|
if (!media_device_id_salt_.get())
|
||||||
media_device_id_salt_ = std::make_unique<MediaDeviceIDSalt>(prefs_.get());
|
media_device_id_salt_ = std::make_unique<MediaDeviceIDSalt>(prefs_.get());
|
||||||
|
|
|
@ -119,8 +119,8 @@ class ElectronBrowserContext : public content::BrowserContext {
|
||||||
|
|
||||||
void SetUserAgent(const std::string& user_agent);
|
void SetUserAgent(const std::string& user_agent);
|
||||||
std::string GetUserAgent() const;
|
std::string GetUserAgent() const;
|
||||||
bool CanUseHttpCache() const;
|
bool can_use_http_cache() const { return use_cache_; }
|
||||||
int GetMaxCacheSize() const;
|
int max_cache_size() const { return max_cache_size_; }
|
||||||
ResolveProxyHelper* GetResolveProxyHelper();
|
ResolveProxyHelper* GetResolveProxyHelper();
|
||||||
predictors::PreconnectManager* GetPreconnectManager();
|
predictors::PreconnectManager* GetPreconnectManager();
|
||||||
scoped_refptr<network::SharedURLLoaderFactory> GetURLLoaderFactory();
|
scoped_refptr<network::SharedURLLoaderFactory> GetURLLoaderFactory();
|
||||||
|
|
|
@ -369,7 +369,7 @@ ExtensionFunction::ResponseAction TabsSetZoomFunction::Run() {
|
||||||
params->zoom_factor > 0
|
params->zoom_factor > 0
|
||||||
? blink::PageZoomFactorToZoomLevel(params->zoom_factor)
|
? blink::PageZoomFactorToZoomLevel(params->zoom_factor)
|
||||||
: blink::PageZoomFactorToZoomLevel(
|
: blink::PageZoomFactorToZoomLevel(
|
||||||
zoom_controller->GetDefaultZoomFactor());
|
zoom_controller->default_zoom_factor());
|
||||||
|
|
||||||
zoom_controller->SetZoomLevel(zoom_level);
|
zoom_controller->SetZoomLevel(zoom_level);
|
||||||
|
|
||||||
|
|
|
@ -1405,7 +1405,7 @@ void NativeWindowViews::SetAutoHideMenuBar(bool auto_hide) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeWindowViews::IsMenuBarAutoHide() const {
|
bool NativeWindowViews::IsMenuBarAutoHide() const {
|
||||||
return root_view_.IsMenuBarAutoHide();
|
return root_view_.is_menu_bar_auto_hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::SetMenuBarVisibility(bool visible) {
|
void NativeWindowViews::SetMenuBarVisibility(bool visible) {
|
||||||
|
@ -1413,7 +1413,7 @@ void NativeWindowViews::SetMenuBarVisibility(bool visible) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeWindowViews::IsMenuBarVisible() const {
|
bool NativeWindowViews::IsMenuBarVisible() const {
|
||||||
return root_view_.IsMenuBarVisible();
|
return root_view_.is_menu_bar_visible();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::SetBackgroundMaterial(const std::string& material) {
|
void NativeWindowViews::SetBackgroundMaterial(const std::string& material) {
|
||||||
|
@ -1529,7 +1529,7 @@ gfx::Rect NativeWindowViews::ContentBoundsToWindowBounds(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (root_view_.HasMenu() && root_view_.IsMenuBarVisible()) {
|
if (root_view_.HasMenu() && root_view_.is_menu_bar_visible()) {
|
||||||
int menu_bar_height = root_view_.GetMenuBarHeight();
|
int menu_bar_height = root_view_.GetMenuBarHeight();
|
||||||
window_bounds.set_y(window_bounds.y() - menu_bar_height);
|
window_bounds.set_y(window_bounds.y() - menu_bar_height);
|
||||||
window_bounds.set_height(window_bounds.height() + menu_bar_height);
|
window_bounds.set_height(window_bounds.height() + menu_bar_height);
|
||||||
|
@ -1556,7 +1556,7 @@ gfx::Rect NativeWindowViews::WindowBoundsToContentBounds(
|
||||||
content_bounds.set_size(ScreenToDIPRect(hwnd, content_bounds).size());
|
content_bounds.set_size(ScreenToDIPRect(hwnd, content_bounds).size());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (root_view_.HasMenu() && root_view_.IsMenuBarVisible()) {
|
if (root_view_.HasMenu() && root_view_.is_menu_bar_visible()) {
|
||||||
int menu_bar_height = root_view_.GetMenuBarHeight();
|
int menu_bar_height = root_view_.GetMenuBarHeight();
|
||||||
content_bounds.set_y(content_bounds.y() + menu_bar_height);
|
content_bounds.set_y(content_bounds.y() + menu_bar_height);
|
||||||
content_bounds.set_height(content_bounds.height() - menu_bar_height);
|
content_bounds.set_height(content_bounds.height() - menu_bar_height);
|
||||||
|
|
|
@ -72,7 +72,7 @@ void NetworkContextService::ConfigureNetworkContextParams(
|
||||||
|
|
||||||
// Enable the HTTP cache.
|
// Enable the HTTP cache.
|
||||||
network_context_params->http_cache_enabled =
|
network_context_params->http_cache_enabled =
|
||||||
browser_context_->CanUseHttpCache();
|
browser_context_->can_use_http_cache();
|
||||||
|
|
||||||
network_context_params->cookie_manager_params =
|
network_context_params->cookie_manager_params =
|
||||||
network::mojom::CookieManagerParams::New();
|
network::mojom::CookieManagerParams::New();
|
||||||
|
@ -81,7 +81,7 @@ void NetworkContextService::ConfigureNetworkContextParams(
|
||||||
if (!in_memory) {
|
if (!in_memory) {
|
||||||
// Configure the HTTP cache path and size.
|
// Configure the HTTP cache path and size.
|
||||||
network_context_params->http_cache_max_size =
|
network_context_params->http_cache_max_size =
|
||||||
browser_context_->GetMaxCacheSize();
|
browser_context_->max_cache_size();
|
||||||
|
|
||||||
network_context_params->file_paths =
|
network_context_params->file_paths =
|
||||||
network::mojom::NetworkContextFilePaths::New();
|
network::mojom::NetworkContextFilePaths::New();
|
||||||
|
|
|
@ -135,7 +135,7 @@ class ElectronDelegatedFrameHostClient
|
||||||
const ElectronDelegatedFrameHostClient&) = delete;
|
const ElectronDelegatedFrameHostClient&) = delete;
|
||||||
|
|
||||||
ui::Layer* DelegatedFrameHostGetLayer() const override {
|
ui::Layer* DelegatedFrameHostGetLayer() const override {
|
||||||
return view_->GetRootLayer();
|
return view_->root_layer();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DelegatedFrameHostIsVisible() const override {
|
bool DelegatedFrameHostIsVisible() const override {
|
||||||
|
@ -214,8 +214,8 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
|
||||||
root_layer_ = std::make_unique<ui::Layer>(ui::LAYER_SOLID_COLOR);
|
root_layer_ = std::make_unique<ui::Layer>(ui::LAYER_SOLID_COLOR);
|
||||||
|
|
||||||
bool opaque = SkColorGetA(background_color_) == SK_AlphaOPAQUE;
|
bool opaque = SkColorGetA(background_color_) == SK_AlphaOPAQUE;
|
||||||
GetRootLayer()->SetFillsBoundsOpaquely(opaque);
|
root_layer()->SetFillsBoundsOpaquely(opaque);
|
||||||
GetRootLayer()->SetColor(background_color_);
|
root_layer()->SetColor(background_color_);
|
||||||
|
|
||||||
ui::ContextFactory* context_factory = content::GetContextFactory();
|
ui::ContextFactory* context_factory = content::GetContextFactory();
|
||||||
compositor_ = std::make_unique<ui::Compositor>(
|
compositor_ = std::make_unique<ui::Compositor>(
|
||||||
|
@ -234,8 +234,8 @@ OffScreenRenderWidgetHostView::OffScreenRenderWidgetHostView(
|
||||||
video_consumer_ = std::make_unique<OffScreenVideoConsumer>(
|
video_consumer_ = std::make_unique<OffScreenVideoConsumer>(
|
||||||
this, base::BindRepeating(&OffScreenRenderWidgetHostView::OnPaint,
|
this, base::BindRepeating(&OffScreenRenderWidgetHostView::OnPaint,
|
||||||
weak_ptr_factory_.GetWeakPtr()));
|
weak_ptr_factory_.GetWeakPtr()));
|
||||||
video_consumer_->SetActive(IsPainting());
|
video_consumer_->SetActive(is_painting());
|
||||||
video_consumer_->SetFrameRate(GetFrameRate());
|
video_consumer_->SetFrameRate(this->frame_rate());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ void OffScreenRenderWidgetHostView::InitAsChild(gfx::NativeView) {
|
||||||
parent_host_view_->Hide();
|
parent_host_view_->Hide();
|
||||||
|
|
||||||
ResizeRootLayer(false);
|
ResizeRootLayer(false);
|
||||||
SetPainting(parent_host_view_->IsPainting());
|
SetPainting(parent_host_view_->is_painting());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::SetSize(const gfx::Size& size) {
|
void OffScreenRenderWidgetHostView::SetSize(const gfx::Size& size) {
|
||||||
|
@ -294,7 +294,7 @@ bool OffScreenRenderWidgetHostView::HasFocus() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OffScreenRenderWidgetHostView::IsSurfaceAvailableForCopy() {
|
bool OffScreenRenderWidgetHostView::IsSurfaceAvailableForCopy() {
|
||||||
return GetDelegatedFrameHost()->CanCopyFromCompositingSurface();
|
return delegated_frame_host()->CanCopyFromCompositingSurface();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::ShowWithVisibility(
|
void OffScreenRenderWidgetHostView::ShowWithVisibility(
|
||||||
|
@ -306,7 +306,7 @@ void OffScreenRenderWidgetHostView::ShowWithVisibility(
|
||||||
|
|
||||||
delegated_frame_host_->AttachToCompositor(compositor_.get());
|
delegated_frame_host_->AttachToCompositor(compositor_.get());
|
||||||
delegated_frame_host_->WasShown(GetLocalSurfaceId(),
|
delegated_frame_host_->WasShown(GetLocalSurfaceId(),
|
||||||
GetRootLayer()->bounds().size(), {});
|
root_layer()->bounds().size(), {});
|
||||||
|
|
||||||
if (render_widget_host_)
|
if (render_widget_host_)
|
||||||
render_widget_host_->WasShown({});
|
render_widget_host_->WasShown({});
|
||||||
|
@ -320,9 +320,9 @@ void OffScreenRenderWidgetHostView::Hide() {
|
||||||
render_widget_host_->WasHidden();
|
render_widget_host_->WasHidden();
|
||||||
|
|
||||||
// TODO(deermichel): correct or kOther?
|
// TODO(deermichel): correct or kOther?
|
||||||
GetDelegatedFrameHost()->WasHidden(
|
delegated_frame_host()->WasHidden(
|
||||||
content::DelegatedFrameHost::HiddenCause::kOccluded);
|
content::DelegatedFrameHost::HiddenCause::kOccluded);
|
||||||
GetDelegatedFrameHost()->DetachFromCompositor();
|
delegated_frame_host()->DetachFromCompositor();
|
||||||
|
|
||||||
is_showing_ = false;
|
is_showing_ = false;
|
||||||
}
|
}
|
||||||
|
@ -384,9 +384,9 @@ void OffScreenRenderWidgetHostView::TakeFallbackContentFrom(
|
||||||
->IsRenderWidgetHostViewChildFrame());
|
->IsRenderWidgetHostViewChildFrame());
|
||||||
auto* view_osr = static_cast<OffScreenRenderWidgetHostView*>(view);
|
auto* view_osr = static_cast<OffScreenRenderWidgetHostView*>(view);
|
||||||
SetBackgroundColor(view_osr->background_color_);
|
SetBackgroundColor(view_osr->background_color_);
|
||||||
if (GetDelegatedFrameHost() && view_osr->GetDelegatedFrameHost()) {
|
if (delegated_frame_host() && view_osr->delegated_frame_host()) {
|
||||||
GetDelegatedFrameHost()->TakeFallbackContentFrom(
|
delegated_frame_host()->TakeFallbackContentFrom(
|
||||||
view_osr->GetDelegatedFrameHost());
|
view_osr->delegated_frame_host());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,11 +397,11 @@ void OffScreenRenderWidgetHostView::
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::UpdateFrameSinkIdRegistration() {
|
void OffScreenRenderWidgetHostView::UpdateFrameSinkIdRegistration() {
|
||||||
RenderWidgetHostViewBase::UpdateFrameSinkIdRegistration();
|
RenderWidgetHostViewBase::UpdateFrameSinkIdRegistration();
|
||||||
GetDelegatedFrameHost()->SetIsFrameSinkIdOwner(is_frame_sink_id_owner());
|
delegated_frame_host()->SetIsFrameSinkIdOwner(is_frame_sink_id_owner());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::ResetFallbackToFirstNavigationSurface() {
|
void OffScreenRenderWidgetHostView::ResetFallbackToFirstNavigationSurface() {
|
||||||
GetDelegatedFrameHost()->ResetFallbackToFirstNavigationSurface();
|
delegated_frame_host()->ResetFallbackToFirstNavigationSurface();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::InitAsPopup(
|
void OffScreenRenderWidgetHostView::InitAsPopup(
|
||||||
|
@ -423,7 +423,7 @@ void OffScreenRenderWidgetHostView::InitAsPopup(
|
||||||
popup_position_ = bounds;
|
popup_position_ = bounds;
|
||||||
|
|
||||||
ResizeRootLayer(true);
|
ResizeRootLayer(true);
|
||||||
SetPainting(parent_host_view_->IsPainting());
|
SetPainting(parent_host_view_->is_painting());
|
||||||
Show();
|
Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -483,7 +483,7 @@ void OffScreenRenderWidgetHostView::CopyFromSurface(
|
||||||
const gfx::Rect& src_rect,
|
const gfx::Rect& src_rect,
|
||||||
const gfx::Size& output_size,
|
const gfx::Size& output_size,
|
||||||
base::OnceCallback<void(const SkBitmap&)> callback) {
|
base::OnceCallback<void(const SkBitmap&)> callback) {
|
||||||
GetDelegatedFrameHost()->CopyFromCompositingSurface(src_rect, output_size,
|
delegated_frame_host()->CopyFromCompositingSurface(src_rect, output_size,
|
||||||
std::move(callback));
|
std::move(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,8 +516,7 @@ void OffScreenRenderWidgetHostView::SetDisplayFeatureForTesting(
|
||||||
const content::DisplayFeature* display_feature) {}
|
const content::DisplayFeature* display_feature) {}
|
||||||
|
|
||||||
viz::SurfaceId OffScreenRenderWidgetHostView::GetCurrentSurfaceId() const {
|
viz::SurfaceId OffScreenRenderWidgetHostView::GetCurrentSurfaceId() const {
|
||||||
return GetDelegatedFrameHost()
|
return delegated_frame_host() ? delegated_frame_host()->GetCurrentSurfaceId()
|
||||||
? GetDelegatedFrameHost()->GetCurrentSurfaceId()
|
|
||||||
: viz::SurfaceId();
|
: viz::SurfaceId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,12 +557,12 @@ OffScreenRenderWidgetHostView::CreateViewForWidget(
|
||||||
}
|
}
|
||||||
|
|
||||||
return new OffScreenRenderWidgetHostView(
|
return new OffScreenRenderWidgetHostView(
|
||||||
transparent_, true, embedder_host_view->GetFrameRate(), callback_,
|
transparent_, true, embedder_host_view->frame_rate(), callback_,
|
||||||
render_widget_host, embedder_host_view, size());
|
render_widget_host, embedder_host_view, size());
|
||||||
}
|
}
|
||||||
|
|
||||||
const viz::FrameSinkId& OffScreenRenderWidgetHostView::GetFrameSinkId() const {
|
const viz::FrameSinkId& OffScreenRenderWidgetHostView::GetFrameSinkId() const {
|
||||||
return GetDelegatedFrameHost()->frame_sink_id();
|
return delegated_frame_host()->frame_sink_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::DidNavigate() {
|
void OffScreenRenderWidgetHostView::DidNavigate() {
|
||||||
|
@ -645,7 +644,7 @@ OffScreenRenderWidgetHostView::CreateHostDisplayClient(
|
||||||
gfx::kNullAcceleratedWidget,
|
gfx::kNullAcceleratedWidget,
|
||||||
base::BindRepeating(&OffScreenRenderWidgetHostView::OnPaint,
|
base::BindRepeating(&OffScreenRenderWidgetHostView::OnPaint,
|
||||||
weak_ptr_factory_.GetWeakPtr()));
|
weak_ptr_factory_.GetWeakPtr()));
|
||||||
host_display_client_->SetActive(IsPainting());
|
host_display_client_->SetActive(is_painting());
|
||||||
return base::WrapUnique(host_display_client_.get());
|
return base::WrapUnique(host_display_client_.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -727,10 +726,10 @@ void OffScreenRenderWidgetHostView::CompositeFrame(
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto* proxy_view : proxy_views_) {
|
for (auto* proxy_view : proxy_views_) {
|
||||||
gfx::Rect rect = proxy_view->GetBounds();
|
gfx::Rect rect = proxy_view->bounds();
|
||||||
gfx::Point origin_in_pixels =
|
gfx::Point origin_in_pixels =
|
||||||
gfx::ToFlooredPoint(gfx::ConvertPointToPixels(rect.origin(), sf));
|
gfx::ToFlooredPoint(gfx::ConvertPointToPixels(rect.origin(), sf));
|
||||||
canvas.writePixels(*proxy_view->GetBitmap(), origin_in_pixels.x(),
|
canvas.writePixels(*proxy_view->bitmap(), origin_in_pixels.x(),
|
||||||
origin_in_pixels.y());
|
origin_in_pixels.y());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -786,7 +785,7 @@ void OffScreenRenderWidgetHostView::SynchronizeVisualProperties() {
|
||||||
void OffScreenRenderWidgetHostView::SendMouseEvent(
|
void OffScreenRenderWidgetHostView::SendMouseEvent(
|
||||||
const blink::WebMouseEvent& event) {
|
const blink::WebMouseEvent& event) {
|
||||||
for (auto* proxy_view : proxy_views_) {
|
for (auto* proxy_view : proxy_views_) {
|
||||||
gfx::Rect bounds = proxy_view->GetBounds();
|
gfx::Rect bounds = proxy_view->bounds();
|
||||||
if (bounds.Contains(event.PositionInWidget().x(),
|
if (bounds.Contains(event.PositionInWidget().x(),
|
||||||
event.PositionInWidget().y())) {
|
event.PositionInWidget().y())) {
|
||||||
blink::WebMouseEvent proxy_event(event);
|
blink::WebMouseEvent proxy_event(event);
|
||||||
|
@ -824,7 +823,7 @@ void OffScreenRenderWidgetHostView::SendMouseEvent(
|
||||||
void OffScreenRenderWidgetHostView::SendMouseWheelEvent(
|
void OffScreenRenderWidgetHostView::SendMouseWheelEvent(
|
||||||
const blink::WebMouseWheelEvent& event) {
|
const blink::WebMouseWheelEvent& event) {
|
||||||
for (auto* proxy_view : proxy_views_) {
|
for (auto* proxy_view : proxy_views_) {
|
||||||
gfx::Rect bounds = proxy_view->GetBounds();
|
gfx::Rect bounds = proxy_view->bounds();
|
||||||
if (bounds.Contains(event.PositionInWidget().x(),
|
if (bounds.Contains(event.PositionInWidget().x(),
|
||||||
event.PositionInWidget().y())) {
|
event.PositionInWidget().y())) {
|
||||||
blink::WebMouseWheelEvent proxy_event(event);
|
blink::WebMouseWheelEvent proxy_event(event);
|
||||||
|
@ -915,22 +914,18 @@ void OffScreenRenderWidgetHostView::SetPainting(bool painting) {
|
||||||
guest_host_view->SetPainting(painting);
|
guest_host_view->SetPainting(painting);
|
||||||
|
|
||||||
if (video_consumer_) {
|
if (video_consumer_) {
|
||||||
video_consumer_->SetActive(IsPainting());
|
video_consumer_->SetActive(is_painting());
|
||||||
} else if (host_display_client_) {
|
} else if (host_display_client_) {
|
||||||
host_display_client_->SetActive(IsPainting());
|
host_display_client_->SetActive(is_painting());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OffScreenRenderWidgetHostView::IsPainting() const {
|
|
||||||
return painting_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::SetFrameRate(int frame_rate) {
|
void OffScreenRenderWidgetHostView::SetFrameRate(int frame_rate) {
|
||||||
if (parent_host_view_) {
|
if (parent_host_view_) {
|
||||||
if (parent_host_view_->GetFrameRate() == GetFrameRate())
|
if (parent_host_view_->frame_rate() == this->frame_rate())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
frame_rate_ = parent_host_view_->GetFrameRate();
|
frame_rate_ = parent_host_view_->frame_rate();
|
||||||
} else {
|
} else {
|
||||||
if (frame_rate <= 0)
|
if (frame_rate <= 0)
|
||||||
frame_rate = 1;
|
frame_rate = 1;
|
||||||
|
@ -943,31 +938,18 @@ void OffScreenRenderWidgetHostView::SetFrameRate(int frame_rate) {
|
||||||
SetupFrameRate(true);
|
SetupFrameRate(true);
|
||||||
|
|
||||||
if (video_consumer_) {
|
if (video_consumer_) {
|
||||||
video_consumer_->SetFrameRate(GetFrameRate());
|
video_consumer_->SetFrameRate(this->frame_rate());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto* guest_host_view : guest_host_views_)
|
for (auto* guest_host_view : guest_host_views_)
|
||||||
guest_host_view->SetFrameRate(frame_rate);
|
guest_host_view->SetFrameRate(frame_rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
int OffScreenRenderWidgetHostView::GetFrameRate() const {
|
|
||||||
return frame_rate_;
|
|
||||||
}
|
|
||||||
|
|
||||||
ui::Layer* OffScreenRenderWidgetHostView::GetRootLayer() const {
|
|
||||||
return root_layer_.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
const viz::LocalSurfaceId& OffScreenRenderWidgetHostView::GetLocalSurfaceId()
|
const viz::LocalSurfaceId& OffScreenRenderWidgetHostView::GetLocalSurfaceId()
|
||||||
const {
|
const {
|
||||||
return delegated_frame_host_surface_id_;
|
return delegated_frame_host_surface_id_;
|
||||||
}
|
}
|
||||||
|
|
||||||
content::DelegatedFrameHost*
|
|
||||||
OffScreenRenderWidgetHostView::GetDelegatedFrameHost() const {
|
|
||||||
return delegated_frame_host_.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::SetupFrameRate(bool force) {
|
void OffScreenRenderWidgetHostView::SetupFrameRate(bool force) {
|
||||||
if (!force && frame_rate_threshold_us_ != 0)
|
if (!force && frame_rate_threshold_us_ != 0)
|
||||||
return;
|
return;
|
||||||
|
@ -1005,10 +987,10 @@ void OffScreenRenderWidgetHostView::ResizeRootLayer(bool force) {
|
||||||
|
|
||||||
gfx::Size size = GetViewBounds().size();
|
gfx::Size size = GetViewBounds().size();
|
||||||
|
|
||||||
if (!force && !sf_did_change && size == GetRootLayer()->bounds().size())
|
if (!force && !sf_did_change && size == root_layer()->bounds().size())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GetRootLayer()->SetBounds(gfx::Rect(size));
|
root_layer()->SetBounds(gfx::Rect(size));
|
||||||
|
|
||||||
const gfx::Size& size_in_pixels =
|
const gfx::Size& size_in_pixels =
|
||||||
gfx::ToFlooredSize(gfx::ConvertSizeToPixels(size, sf));
|
gfx::ToFlooredSize(gfx::ConvertSizeToPixels(size, sf));
|
||||||
|
@ -1023,7 +1005,7 @@ void OffScreenRenderWidgetHostView::ResizeRootLayer(bool force) {
|
||||||
delegated_frame_host_surface_id_ =
|
delegated_frame_host_surface_id_ =
|
||||||
delegated_frame_host_allocator_.GetCurrentLocalSurfaceId();
|
delegated_frame_host_allocator_.GetCurrentLocalSurfaceId();
|
||||||
|
|
||||||
GetDelegatedFrameHost()->EmbedSurface(
|
delegated_frame_host()->EmbedSurface(
|
||||||
delegated_frame_host_surface_id_, size,
|
delegated_frame_host_surface_id_, size,
|
||||||
cc::DeadlinePolicy::UseDefaultDeadline());
|
cc::DeadlinePolicy::UseDefaultDeadline());
|
||||||
|
|
||||||
|
@ -1048,8 +1030,8 @@ void OffScreenRenderWidgetHostView::UpdateBackgroundColorFromRenderer(
|
||||||
background_color_ = color;
|
background_color_ = color;
|
||||||
|
|
||||||
bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
|
bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
|
||||||
GetRootLayer()->SetFillsBoundsOpaquely(opaque);
|
root_layer()->SetFillsBoundsOpaquely(opaque);
|
||||||
GetRootLayer()->SetColor(color);
|
root_layer()->SetColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffScreenRenderWidgetHostView::NotifyHostAndDelegateOnWasShown(
|
void OffScreenRenderWidgetHostView::NotifyHostAndDelegateOnWasShown(
|
||||||
|
|
|
@ -210,14 +210,16 @@ class OffScreenRenderWidgetHostView : public content::RenderWidgetHostViewBase,
|
||||||
void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
|
void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
|
||||||
|
|
||||||
void SetPainting(bool painting);
|
void SetPainting(bool painting);
|
||||||
bool IsPainting() const;
|
bool is_painting() const { return painting_; }
|
||||||
|
|
||||||
void SetFrameRate(int frame_rate);
|
void SetFrameRate(int frame_rate);
|
||||||
int GetFrameRate() const;
|
int frame_rate() const { return frame_rate_; }
|
||||||
|
|
||||||
ui::Layer* GetRootLayer() const;
|
ui::Layer* root_layer() const { return root_layer_.get(); }
|
||||||
|
|
||||||
content::DelegatedFrameHost* GetDelegatedFrameHost() const;
|
content::DelegatedFrameHost* delegated_frame_host() const {
|
||||||
|
return delegated_frame_host_.get();
|
||||||
|
}
|
||||||
|
|
||||||
void Invalidate();
|
void Invalidate();
|
||||||
void InvalidateBounds(const gfx::Rect&);
|
void InvalidateBounds(const gfx::Rect&);
|
||||||
|
|
|
@ -42,7 +42,7 @@ OffScreenVideoConsumer::OffScreenVideoConsumer(
|
||||||
video_capturer_->SetFormat(media::PIXEL_FORMAT_ARGB);
|
video_capturer_->SetFormat(media::PIXEL_FORMAT_ARGB);
|
||||||
|
|
||||||
SizeChanged(view_->SizeInPixels());
|
SizeChanged(view_->SizeInPixels());
|
||||||
SetFrameRate(view_->GetFrameRate());
|
SetFrameRate(view_->frame_rate());
|
||||||
}
|
}
|
||||||
|
|
||||||
OffScreenVideoConsumer::~OffScreenVideoConsumer() = default;
|
OffScreenVideoConsumer::~OffScreenVideoConsumer() = default;
|
||||||
|
|
|
@ -29,10 +29,6 @@ void OffscreenViewProxy::RemoveObserver() {
|
||||||
observer_ = nullptr;
|
observer_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SkBitmap* OffscreenViewProxy::GetBitmap() const {
|
|
||||||
return view_bitmap_.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
void OffscreenViewProxy::SetBitmap(const SkBitmap& bitmap) {
|
void OffscreenViewProxy::SetBitmap(const SkBitmap& bitmap) {
|
||||||
if (view_bounds_.width() == bitmap.width() &&
|
if (view_bounds_.width() == bitmap.width() &&
|
||||||
view_bounds_.height() == bitmap.height() && observer_) {
|
view_bounds_.height() == bitmap.height() && observer_) {
|
||||||
|
@ -41,10 +37,6 @@ void OffscreenViewProxy::SetBitmap(const SkBitmap& bitmap) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const gfx::Rect& OffscreenViewProxy::GetBounds() {
|
|
||||||
return view_bounds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OffscreenViewProxy::SetBounds(const gfx::Rect& bounds) {
|
void OffscreenViewProxy::SetBounds(const gfx::Rect& bounds) {
|
||||||
view_bounds_ = bounds;
|
view_bounds_ = bounds;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,10 +31,10 @@ class OffscreenViewProxy {
|
||||||
void SetObserver(OffscreenViewProxyObserver* observer);
|
void SetObserver(OffscreenViewProxyObserver* observer);
|
||||||
void RemoveObserver();
|
void RemoveObserver();
|
||||||
|
|
||||||
const SkBitmap* GetBitmap() const;
|
const SkBitmap* bitmap() const { return view_bitmap_.get(); }
|
||||||
void SetBitmap(const SkBitmap& bitmap);
|
void SetBitmap(const SkBitmap& bitmap);
|
||||||
|
|
||||||
const gfx::Rect& GetBounds();
|
const gfx::Rect& bounds() { return view_bounds_; }
|
||||||
void SetBounds(const gfx::Rect& bounds);
|
void SetBounds(const gfx::Rect& bounds);
|
||||||
|
|
||||||
void OnEvent(ui::Event* event);
|
void OnEvent(ui::Event* event);
|
||||||
|
|
|
@ -139,7 +139,7 @@ OffScreenWebContentsView::CreateViewForChildWidget(
|
||||||
: web_contents_impl->GetRenderWidgetHostView());
|
: web_contents_impl->GetRenderWidgetHostView());
|
||||||
|
|
||||||
return new OffScreenRenderWidgetHostView(transparent_, painting_,
|
return new OffScreenRenderWidgetHostView(transparent_, painting_,
|
||||||
view->GetFrameRate(), callback_,
|
view->frame_rate(), callback_,
|
||||||
render_widget_host, view, GetSize());
|
render_widget_host, view, GetSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,13 +191,10 @@ void OffScreenWebContentsView::SetPainting(bool painting) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OffScreenWebContentsView::IsPainting() const {
|
bool OffScreenWebContentsView::IsPainting() const {
|
||||||
auto* view = GetView();
|
if (auto* view = GetView())
|
||||||
if (view != nullptr) {
|
return view->is_painting();
|
||||||
return view->IsPainting();
|
|
||||||
} else {
|
|
||||||
return painting_;
|
return painting_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void OffScreenWebContentsView::SetFrameRate(int frame_rate) {
|
void OffScreenWebContentsView::SetFrameRate(int frame_rate) {
|
||||||
auto* view = GetView();
|
auto* view = GetView();
|
||||||
|
@ -208,13 +205,10 @@ void OffScreenWebContentsView::SetFrameRate(int frame_rate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int OffScreenWebContentsView::GetFrameRate() const {
|
int OffScreenWebContentsView::GetFrameRate() const {
|
||||||
auto* view = GetView();
|
if (auto* view = GetView())
|
||||||
if (view != nullptr) {
|
return view->frame_rate();
|
||||||
return view->GetFrameRate();
|
|
||||||
} else {
|
|
||||||
return frame_rate_;
|
return frame_rate_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
OffScreenRenderWidgetHostView* OffScreenWebContentsView::GetView() const {
|
OffScreenRenderWidgetHostView* OffScreenWebContentsView::GetView() const {
|
||||||
if (web_contents_) {
|
if (web_contents_) {
|
||||||
|
|
|
@ -84,10 +84,6 @@ void RootView::SetAutoHideMenuBar(bool auto_hide) {
|
||||||
menu_bar_autohide_ = auto_hide;
|
menu_bar_autohide_ = auto_hide;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RootView::IsMenuBarAutoHide() const {
|
|
||||||
return menu_bar_autohide_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RootView::SetMenuBarVisibility(bool visible) {
|
void RootView::SetMenuBarVisibility(bool visible) {
|
||||||
if (!window_->content_view() || !menu_bar_ || menu_bar_visible_ == visible)
|
if (!window_->content_view() || !menu_bar_ || menu_bar_visible_ == visible)
|
||||||
return;
|
return;
|
||||||
|
@ -104,10 +100,6 @@ void RootView::SetMenuBarVisibility(bool visible) {
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RootView::IsMenuBarVisible() const {
|
|
||||||
return menu_bar_visible_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RootView::HandleKeyEvent(const content::NativeWebKeyboardEvent& event) {
|
void RootView::HandleKeyEvent(const content::NativeWebKeyboardEvent& event) {
|
||||||
if (!menu_bar_)
|
if (!menu_bar_)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -36,9 +36,9 @@ class RootView : public views::View {
|
||||||
bool HasMenu() const;
|
bool HasMenu() const;
|
||||||
int GetMenuBarHeight() const;
|
int GetMenuBarHeight() const;
|
||||||
void SetAutoHideMenuBar(bool auto_hide);
|
void SetAutoHideMenuBar(bool auto_hide);
|
||||||
bool IsMenuBarAutoHide() const;
|
bool is_menu_bar_auto_hide() const { return menu_bar_autohide_; }
|
||||||
void SetMenuBarVisibility(bool visible);
|
void SetMenuBarVisibility(bool visible);
|
||||||
bool IsMenuBarVisible() const;
|
bool is_menu_bar_visible() const { return menu_bar_visible_; }
|
||||||
void HandleKeyEvent(const content::NativeWebKeyboardEvent& event);
|
void HandleKeyEvent(const content::NativeWebKeyboardEvent& event);
|
||||||
void ResetAltState();
|
void ResetAltState();
|
||||||
void RestoreFocus();
|
void RestoreFocus();
|
||||||
|
|
|
@ -142,10 +142,6 @@ void WebContentsZoomController::SetDefaultZoomFactor(double factor) {
|
||||||
default_zoom_factor_ = factor;
|
default_zoom_factor_ = factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
double WebContentsZoomController::GetDefaultZoomFactor() {
|
|
||||||
return default_zoom_factor_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void WebContentsZoomController::SetTemporaryZoomLevel(double level) {
|
void WebContentsZoomController::SetTemporaryZoomLevel(double level) {
|
||||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||||
content::GlobalRenderFrameHostId old_rfh_id_ =
|
content::GlobalRenderFrameHostId old_rfh_id_ =
|
||||||
|
@ -337,7 +333,7 @@ void WebContentsZoomController::RenderFrameHostChanged(
|
||||||
void WebContentsZoomController::SetZoomFactorOnNavigationIfNeeded(
|
void WebContentsZoomController::SetZoomFactorOnNavigationIfNeeded(
|
||||||
const GURL& url) {
|
const GURL& url) {
|
||||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||||
if (blink::PageZoomValuesEqual(GetDefaultZoomFactor(), kPageZoomEpsilon))
|
if (blink::PageZoomValuesEqual(default_zoom_factor(), kPageZoomEpsilon))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
content::GlobalRenderFrameHostId old_rfh_id_ =
|
content::GlobalRenderFrameHostId old_rfh_id_ =
|
||||||
|
@ -360,7 +356,7 @@ void WebContentsZoomController::SetZoomFactorOnNavigationIfNeeded(
|
||||||
// pref store < kZoomFactor < setZoomLevel
|
// pref store < kZoomFactor < setZoomLevel
|
||||||
std::string host = net::GetHostOrSpecFromURL(url);
|
std::string host = net::GetHostOrSpecFromURL(url);
|
||||||
std::string scheme = url.scheme();
|
std::string scheme = url.scheme();
|
||||||
double zoom_factor = GetDefaultZoomFactor();
|
double zoom_factor = default_zoom_factor();
|
||||||
double zoom_level = blink::PageZoomFactorToZoomLevel(zoom_factor);
|
double zoom_level = blink::PageZoomFactorToZoomLevel(zoom_factor);
|
||||||
if (host_zoom_map_->HasZoomLevel(scheme, host)) {
|
if (host_zoom_map_->HasZoomLevel(scheme, host)) {
|
||||||
zoom_level = host_zoom_map_->GetZoomLevelForHostAndScheme(scheme, host);
|
zoom_level = host_zoom_map_->GetZoomLevelForHostAndScheme(scheme, host);
|
||||||
|
|
|
@ -81,7 +81,7 @@ class WebContentsZoomController
|
||||||
bool SetZoomLevel(double zoom_level);
|
bool SetZoomLevel(double zoom_level);
|
||||||
|
|
||||||
void SetDefaultZoomFactor(double factor);
|
void SetDefaultZoomFactor(double factor);
|
||||||
double GetDefaultZoomFactor();
|
double default_zoom_factor() { return default_zoom_factor_; }
|
||||||
|
|
||||||
// Sets the temporary zoom level through HostZoomMap.
|
// Sets the temporary zoom level through HostZoomMap.
|
||||||
void SetTemporaryZoomLevel(double level);
|
void SetTemporaryZoomLevel(double level);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue