#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/native_window.h"
+#include "atom/browser/web_view_guest_delegate.h"
#include "atom/common/api/api_messages.h"
#include "atom/common/event_emitter_caller.h"
#include "atom/common/native_mate_converters/gfx_converter.h"
#include "chrome/browser/printing/print_view_manager_basic.h"
#include "chrome/browser/printing/print_preview_message_handler.h"
#include "content/public/browser/favicon_status.h"
-#include "content/public/browser/guest_host.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/plugin_service.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/resource_request_details.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/storage_partition.h"
namespace mate {
template<>
-struct Converter<atom::api::SetSizeParams> {
+struct Converter<atom::SetSizeParams> {
static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> val,
- atom::api::SetSizeParams* out) {
+ atom::SetSizeParams* out) {
mate::Dictionary params;
if (!ConvertFromV8(isolate, val, ¶ms))
return false;
namespace {
-const int kDefaultWidth = 300;
-const int kDefaultHeight = 300;
-
v8::Persistent<v8::ObjectTemplate> template_;
// The wrapWebContents funtion which is implemented in JavaScript
WebContents::WebContents(content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),
- guest_opaque_(true),
- guest_host_(nullptr),
- auto_size_enabled_(false),
- is_full_page_plugin_(false),
type_(REMOTE),
inspectable_web_contents_(nullptr) {
AttachAsUserData(web_contents);
}
-WebContents::WebContents(const mate::Dictionary& options)
- : guest_opaque_(true),
- guest_host_(nullptr),
- auto_size_enabled_(false),
- is_full_page_plugin_(false) {
+WebContents::WebContents(const mate::Dictionary& options) {
bool is_guest = false;
options.Get("isGuest", &is_guest);
content::SiteInstance* site_instance = content::SiteInstance::CreateForURL(
browser_context, GURL("chrome-guest://fake-host"));
content::WebContents::CreateParams params(browser_context, site_instance);
- params.guest_delegate = this;
+ guest_delegate_.reset(new WebViewGuestDelegate);
+ params.guest_delegate = guest_delegate_.get();
web_contents = content::WebContents::Create(params);
} else {
content::WebContents::CreateParams params(browser_context);
inspectable_web_contents_ = managed_web_contents();
if (is_guest) {
+ guest_delegate_->Initialize(this);
+
NativeWindow* owner_window = nullptr;
WebContents* embedder = nullptr;
if (options.Get("embedder", &embedder) && embedder) {
const content::NativeWebKeyboardEvent& event) {
if (type_ == BROWSER_WINDOW) {
owner_window()->HandleKeyboardEvent(source, event);
- } else if (type_ == WEB_VIEW && !attached()) {
+ } else if (type_ == WEB_VIEW && guest_delegate_) {
// Send the unhandled keyboard events back to the embedder.
- embedder_web_contents_->GetDelegate()->HandleKeyboardEvent(source, event);
+ guest_delegate_->HandleKeyboardEvent(source, event);
}
}
return handled;
}
-void WebContents::RenderViewReady() {
- if (type_ != WEB_VIEW)
- return;
-
- // We don't want to accidentally set the opacity of an interstitial page.
- // WebContents::GetRenderWidgetHostView will return the RWHV of an
- // interstitial page if one is showing at this time. We only want opacity
- // to apply to web pages.
- auto render_view_host_view = web_contents()->GetRenderViewHost()->GetView();
- if (guest_opaque_)
- render_view_host_view->SetBackgroundColorToDefault();
- else
- render_view_host_view->SetBackgroundColor(SK_ColorTRANSPARENT);
-}
-
void WebContents::WebContentsDestroyed() {
// The RenderViewDeleted was not called when the WebContents is destroyed.
RenderViewDeleted(web_contents()->GetRenderViewHost());
details.is_in_page, details.did_replace_entry);
}
-void WebContents::DidAttach(int guest_proxy_routing_id) {
- Emit("did-attach");
-}
-
-content::WebContents* WebContents::GetOwnerWebContents() const {
- return embedder_web_contents_;
-}
-
-void WebContents::GuestSizeChanged(const gfx::Size& new_size) {
- if (!auto_size_enabled_)
- return;
- GuestSizeChangedDueToAutoSize(guest_size_, new_size);
- guest_size_ = new_size;
-}
-
-void WebContents::SetGuestHost(content::GuestHost* guest_host) {
- guest_host_ = guest_host;
-}
-
-void WebContents::WillAttach(content::WebContents* embedder_web_contents,
- int element_instance_id,
- bool is_full_page_plugin) {
- embedder_web_contents_ = embedder_web_contents;
- is_full_page_plugin_ = is_full_page_plugin;
-}
-
void WebContents::Destroy() {
if (type_ == WEB_VIEW && managed_web_contents()) {
// When force destroying the "destroyed" event is not emitted.
WebContentsDestroyed();
- // Give the content module an opportunity to perform some cleanup.
- guest_host_->WillDestroy();
- guest_host_ = nullptr;
+ guest_delegate_->Destroy();
Observe(nullptr);
DestroyWebContents();
}
void WebContents::SetSize(const SetSizeParams& params) {
- bool enable_auto_size =
- params.enable_auto_size ? *params.enable_auto_size : auto_size_enabled_;
- gfx::Size min_size = params.min_size ? *params.min_size : min_auto_size_;
- gfx::Size max_size = params.max_size ? *params.max_size : max_auto_size_;
-
- if (params.normal_size)
- normal_size_ = *params.normal_size;
-
- min_auto_size_ = min_size;
- min_auto_size_.SetToMin(max_size);
- max_auto_size_ = max_size;
- max_auto_size_.SetToMax(min_size);
-
- enable_auto_size &= !min_auto_size_.IsEmpty() && !max_auto_size_.IsEmpty();
-
- content::RenderViewHost* rvh = web_contents()->GetRenderViewHost();
- if (enable_auto_size) {
- // Autosize is being enabled.
- rvh->EnableAutoResize(min_auto_size_, max_auto_size_);
- normal_size_.SetSize(0, 0);
- } else {
- // Autosize is being disabled.
- // Use default width/height if missing from partially defined normal size.
- if (normal_size_.width() && !normal_size_.height())
- normal_size_.set_height(GetDefaultSize().height());
- if (!normal_size_.width() && normal_size_.height())
- normal_size_.set_width(GetDefaultSize().width());
-
- gfx::Size new_size;
- if (!normal_size_.IsEmpty()) {
- new_size = normal_size_;
- } else if (!guest_size_.IsEmpty()) {
- new_size = guest_size_;
- } else {
- new_size = GetDefaultSize();
- }
-
- if (auto_size_enabled_) {
- // Autosize was previously enabled.
- rvh->DisableAutoResize(new_size);
- GuestSizeChangedDueToAutoSize(guest_size_, new_size);
- } else {
- // Autosize was already disabled.
- guest_host_->SizeContents(new_size);
- }
-
- guest_size_ = new_size;
- }
-
- auto_size_enabled_ = enable_auto_size;
+ if (guest_delegate_)
+ guest_delegate_->SetSize(params);
}
void WebContents::SetAllowTransparency(bool allow) {
- if (guest_opaque_ != allow)
- return;
-
- auto render_view_host = web_contents()->GetRenderViewHost();
- guest_opaque_ = !allow;
- if (!render_view_host->GetView())
- return;
-
- if (guest_opaque_) {
- render_view_host->GetView()->SetBackgroundColorToDefault();
- } else {
- render_view_host->GetView()->SetBackgroundColor(SK_ColorTRANSPARENT);
- }
+ if (guest_delegate_)
+ guest_delegate_->SetAllowTransparency(allow);
}
bool WebContents::IsGuest() const {
EmitWithSender(base::UTF16ToUTF8(channel), web_contents(), message, args);
}
-void WebContents::GuestSizeChangedDueToAutoSize(const gfx::Size& old_size,
- const gfx::Size& new_size) {
- Emit("size-changed",
- old_size.width(), old_size.height(),
- new_size.width(), new_size.height());
-}
-
-gfx::Size WebContents::GetDefaultSize() const {
- if (is_full_page_plugin_) {
- // Full page plugins default to the size of the owner's viewport.
- return embedder_web_contents_->GetRenderWidgetHostView()
- ->GetVisibleViewportSize();
- } else {
- return gfx::Size(kDefaultWidth, kDefaultHeight);
- }
-}
-
// static
mate::Handle<WebContents> WebContents::CreateFrom(
v8::Isolate* isolate, content::WebContents* web_contents) {
#include "atom/browser/api/trackable_object.h"
#include "atom/browser/common_web_contents_delegate.h"
-#include "content/public/browser/browser_plugin_guest_delegate.h"
#include "content/public/common/favicon_url.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/gpu_data_manager_observer.h"
namespace atom {
-namespace api {
+struct SetSizeParams;
+class WebViewGuestDelegate;
-// A struct of parameters for SetSize(). The parameters are all declared as
-// scoped pointers since they are all optional. Null pointers indicate that the
-// parameter has not been provided, and the last used value should be used. Note
-// that when |enable_auto_size| is true, providing |normal_size| is not
-// meaningful. This is because the normal size of the guestview is overridden
-// whenever autosizing occurs.
-struct SetSizeParams {
- SetSizeParams() {}
- ~SetSizeParams() {}
-
- scoped_ptr<bool> enable_auto_size;
- scoped_ptr<gfx::Size> min_size;
- scoped_ptr<gfx::Size> max_size;
- scoped_ptr<gfx::Size> normal_size;
-};
+namespace api {
class WebContents : public mate::TrackableObject<WebContents>,
- public content::BrowserPluginGuestDelegate,
public CommonWebContentsDelegate,
public content::WebContentsObserver,
public content::GpuDataManagerObserver {
bool SendIPCMessage(const base::string16& channel,
const base::ListValue& args);
- // Used to toggle autosize mode for this GuestView, and set both the automatic
- // and normal sizes.
+ // Methods for creating <webview>.
void SetSize(const SetSizeParams& params);
-
- // Sets the transparency of the guest.
void SetAllowTransparency(bool allow);
-
bool IsGuest() const;
- // Returns whether this guest has an associated embedder.
- bool attached() const { return !!embedder_web_contents_; }
-
// Returns the current InspectableWebContents object, nullptr will be returned
// if current WebContents can not beinspected, e.g. it is the devtools.
brightray::InspectableWebContents* inspectable_web_contents() const {
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) override;
bool OnMessageReceived(const IPC::Message& message) override;
- void RenderViewReady() override;
void WebContentsDestroyed() override;
void NavigationEntryCommitted(
const content::LoadCommittedDetails& load_details) override;
void PluginCrashed(const base::FilePath& plugin_path,
base::ProcessId plugin_pid) override;
- // content::BrowserPluginGuestDelegate:
- void DidAttach(int guest_proxy_routing_id) final;
- content::WebContents* GetOwnerWebContents() const final;
- void GuestSizeChanged(const gfx::Size& new_size) final;
- void SetGuestHost(content::GuestHost* guest_host) final;
- void WillAttach(content::WebContents* embedder_web_contents,
- int element_instance_id,
- bool is_full_page_plugin) final;
-
// content::GpuDataManagerObserver:
void OnGpuProcessCrashed(base::TerminationStatus exit_code) override;
const base::ListValue& args,
IPC::Message* message);
- // This method is invoked when the contents auto-resized to give the container
- // an opportunity to match it if it wishes.
- //
- // This gives the derived class an opportunity to inform its container element
- // or perform other actions.
- void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size,
- const gfx::Size& new_size);
-
- // Returns the default size of the guestview.
- gfx::Size GetDefaultSize() const;
-
v8::Global<v8::Value> session_;
- // Stores whether the contents of the guest can be transparent.
- bool guest_opaque_;
-
- // The WebContents that attaches this guest view.
- content::WebContents* embedder_web_contents_;
-
- // The size of the container element.
- gfx::Size element_size_;
-
- // The size of the guest content. Note: In autosize mode, the container
- // element may not match the size of the guest.
- gfx::Size guest_size_;
-
- // A pointer to the guest_host.
- content::GuestHost* guest_host_;
-
- // Indicates whether autosize mode is enabled or not.
- bool auto_size_enabled_;
-
- // The maximum size constraints of the container element in autosize mode.
- gfx::Size max_auto_size_;
-
- // The minimum size constraints of the container element in autosize mode.
- gfx::Size min_auto_size_;
-
- // The size that will be used when autosize mode is disabled.
- gfx::Size normal_size_;
-
- // Whether the guest view is inside a plugin document.
- bool is_full_page_plugin_;
+ scoped_ptr<WebViewGuestDelegate> guest_delegate_;
// The type of current WebContents.
Type type_;
public:
typedef std::vector<v8::Local<v8::Value>> ValueArray;
- protected:
- EventEmitter();
-
// this.emit(name, new Event(), args...);
template<typename... Args>
bool Emit(const base::StringPiece& name, const Args&... args) {
StringToV8(isolate(), "defaultPrevented"))->BooleanValue();
}
+ protected:
+ EventEmitter();
+
private:
v8::Local<v8::Object> CreateEvent(v8::Isolate* isolate,
content::WebContents* sender,
--- /dev/null
+// Copyright (c) 2015 GitHub, Inc.
+// Use of this source code is governed by the MIT license that can be
+// found in the LICENSE file.
+
+#include "atom/browser/web_view_guest_delegate.h"
+
+#include "atom/browser/api/atom_api_web_contents.h"
+#include "content/public/browser/guest_host.h"
+#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_widget_host_view.h"
+
+namespace atom {
+
+namespace {
+
+const int kDefaultWidth = 300;
+const int kDefaultHeight = 300;
+
+} // namespace
+
+WebViewGuestDelegate::WebViewGuestDelegate()
+ : guest_opaque_(true),
+ guest_host_(nullptr),
+ auto_size_enabled_(false),
+ is_full_page_plugin_(false),
+ api_web_contents_(nullptr) {
+}
+
+WebViewGuestDelegate::~WebViewGuestDelegate() {
+}
+
+void WebViewGuestDelegate::Initialize(api::WebContents* api_web_contents) {
+ api_web_contents_ = api_web_contents;
+ Observe(api_web_contents->GetWebContents());
+}
+
+void WebViewGuestDelegate::Destroy() {
+ // Give the content module an opportunity to perform some cleanup.
+ guest_host_->WillDestroy();
+ guest_host_ = nullptr;
+}
+
+void WebViewGuestDelegate::SetSize(const SetSizeParams& params) {
+ bool enable_auto_size =
+ params.enable_auto_size ? *params.enable_auto_size : auto_size_enabled_;
+ gfx::Size min_size = params.min_size ? *params.min_size : min_auto_size_;
+ gfx::Size max_size = params.max_size ? *params.max_size : max_auto_size_;
+
+ if (params.normal_size)
+ normal_size_ = *params.normal_size;
+
+ min_auto_size_ = min_size;
+ min_auto_size_.SetToMin(max_size);
+ max_auto_size_ = max_size;
+ max_auto_size_.SetToMax(min_size);
+
+ enable_auto_size &= !min_auto_size_.IsEmpty() && !max_auto_size_.IsEmpty();
+
+ auto rvh = web_contents()->GetRenderViewHost();
+ if (enable_auto_size) {
+ // Autosize is being enabled.
+ rvh->EnableAutoResize(min_auto_size_, max_auto_size_);
+ normal_size_.SetSize(0, 0);
+ } else {
+ // Autosize is being disabled.
+ // Use default width/height if missing from partially defined normal size.
+ if (normal_size_.width() && !normal_size_.height())
+ normal_size_.set_height(GetDefaultSize().height());
+ if (!normal_size_.width() && normal_size_.height())
+ normal_size_.set_width(GetDefaultSize().width());
+
+ gfx::Size new_size;
+ if (!normal_size_.IsEmpty()) {
+ new_size = normal_size_;
+ } else if (!guest_size_.IsEmpty()) {
+ new_size = guest_size_;
+ } else {
+ new_size = GetDefaultSize();
+ }
+
+ if (auto_size_enabled_) {
+ // Autosize was previously enabled.
+ rvh->DisableAutoResize(new_size);
+ GuestSizeChangedDueToAutoSize(guest_size_, new_size);
+ } else {
+ // Autosize was already disabled.
+ guest_host_->SizeContents(new_size);
+ }
+
+ guest_size_ = new_size;
+ }
+
+ auto_size_enabled_ = enable_auto_size;
+}
+
+void WebViewGuestDelegate::SetAllowTransparency(bool allow) {
+ if (guest_opaque_ != allow)
+ return;
+
+ auto render_view_host = web_contents()->GetRenderViewHost();
+ guest_opaque_ = !allow;
+ if (!render_view_host->GetView())
+ return;
+
+ if (guest_opaque_) {
+ render_view_host->GetView()->SetBackgroundColorToDefault();
+ } else {
+ render_view_host->GetView()->SetBackgroundColor(SK_ColorTRANSPARENT);
+ }
+}
+
+void WebViewGuestDelegate::HandleKeyboardEvent(
+ content::WebContents* source,
+ const content::NativeWebKeyboardEvent& event) {
+ if (embedder_web_contents_)
+ embedder_web_contents_->GetDelegate()->HandleKeyboardEvent(source, event);
+}
+
+void WebViewGuestDelegate::RenderViewReady() {
+ // We don't want to accidentally set the opacity of an interstitial page.
+ // WebContents::GetRenderWidgetHostView will return the RWHV of an
+ // interstitial page if one is showing at this time. We only want opacity
+ // to apply to web pages.
+ auto render_view_host_view = web_contents()->GetRenderViewHost()->GetView();
+ if (guest_opaque_)
+ render_view_host_view->SetBackgroundColorToDefault();
+ else
+ render_view_host_view->SetBackgroundColor(SK_ColorTRANSPARENT);
+}
+
+void WebViewGuestDelegate::DidAttach(int guest_proxy_routing_id) {
+ api_web_contents_->Emit("did-attach");
+}
+
+content::WebContents* WebViewGuestDelegate::GetOwnerWebContents() const {
+ return embedder_web_contents_;
+}
+
+void WebViewGuestDelegate::GuestSizeChanged(const gfx::Size& new_size) {
+ if (!auto_size_enabled_)
+ return;
+ GuestSizeChangedDueToAutoSize(guest_size_, new_size);
+ guest_size_ = new_size;
+}
+
+void WebViewGuestDelegate::SetGuestHost(content::GuestHost* guest_host) {
+ guest_host_ = guest_host;
+}
+
+void WebViewGuestDelegate::WillAttach(
+ content::WebContents* embedder_web_contents,
+ int element_instance_id,
+ bool is_full_page_plugin) {
+ embedder_web_contents_ = embedder_web_contents;
+ is_full_page_plugin_ = is_full_page_plugin;
+}
+
+void WebViewGuestDelegate::GuestSizeChangedDueToAutoSize(
+ const gfx::Size& old_size, const gfx::Size& new_size) {
+ api_web_contents_->Emit("size-changed",
+ old_size.width(), old_size.height(),
+ new_size.width(), new_size.height());
+}
+
+gfx::Size WebViewGuestDelegate::GetDefaultSize() const {
+ if (is_full_page_plugin_) {
+ // Full page plugins default to the size of the owner's viewport.
+ return embedder_web_contents_->GetRenderWidgetHostView()
+ ->GetVisibleViewportSize();
+ } else {
+ return gfx::Size(kDefaultWidth, kDefaultHeight);
+ }
+}
+
+} // namespace atom
--- /dev/null
+// Copyright (c) 2015 GitHub, Inc.
+// Use of this source code is governed by the MIT license that can be
+// found in the LICENSE file.
+
+#ifndef ATOM_BROWSER_WEB_VIEW_GUEST_DELEGATE_H_
+#define ATOM_BROWSER_WEB_VIEW_GUEST_DELEGATE_H_
+
+#include "content/public/browser/browser_plugin_guest_delegate.h"
+#include "content/public/browser/web_contents_observer.h"
+
+namespace content {
+struct NativeWebKeyboardEvent;
+}
+
+namespace atom {
+
+namespace api {
+class WebContents;
+}
+
+// A struct of parameters for SetSize(). The parameters are all declared as
+// scoped pointers since they are all optional. Null pointers indicate that the
+// parameter has not been provided, and the last used value should be used. Note
+// that when |enable_auto_size| is true, providing |normal_size| is not
+// meaningful. This is because the normal size of the guestview is overridden
+// whenever autosizing occurs.
+struct SetSizeParams {
+ SetSizeParams() {}
+ ~SetSizeParams() {}
+
+ scoped_ptr<bool> enable_auto_size;
+ scoped_ptr<gfx::Size> min_size;
+ scoped_ptr<gfx::Size> max_size;
+ scoped_ptr<gfx::Size> normal_size;
+};
+
+class WebViewGuestDelegate : public content::BrowserPluginGuestDelegate,
+ public content::WebContentsObserver {
+ public:
+ WebViewGuestDelegate();
+ ~WebViewGuestDelegate() override;
+
+ void Initialize(api::WebContents* api_web_contents);
+
+ // Called when the WebContents is going to be destroyed.
+ void Destroy();
+
+ // Used to toggle autosize mode for this GuestView, and set both the automatic
+ // and normal sizes.
+ void SetSize(const SetSizeParams& params);
+
+ // Sets the transparency of the guest.
+ void SetAllowTransparency(bool allow);
+
+ // Transfer the keyboard event to embedder.
+ void HandleKeyboardEvent(content::WebContents* source,
+ const content::NativeWebKeyboardEvent& event);
+
+ protected:
+ // content::WebContentsObserver:
+ void RenderViewReady() override;
+
+ // content::BrowserPluginGuestDelegate:
+ void DidAttach(int guest_proxy_routing_id) final;
+ content::WebContents* GetOwnerWebContents() const final;
+ void GuestSizeChanged(const gfx::Size& new_size) final;
+ void SetGuestHost(content::GuestHost* guest_host) final;
+ void WillAttach(content::WebContents* embedder_web_contents,
+ int element_instance_id,
+ bool is_full_page_plugin) final;
+
+ private:
+ // This method is invoked when the contents auto-resized to give the container
+ // an opportunity to match it if it wishes.
+ //
+ // This gives the derived class an opportunity to inform its container element
+ // or perform other actions.
+ void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size,
+ const gfx::Size& new_size);
+
+ // Returns the default size of the guestview.
+ gfx::Size GetDefaultSize() const;
+
+ // Stores whether the contents of the guest can be transparent.
+ bool guest_opaque_;
+
+ // The WebContents that attaches this guest view.
+ content::WebContents* embedder_web_contents_;
+
+ // The size of the container element.
+ gfx::Size element_size_;
+
+ // The size of the guest content. Note: In autosize mode, the container
+ // element may not match the size of the guest.
+ gfx::Size guest_size_;
+
+ // A pointer to the guest_host.
+ content::GuestHost* guest_host_;
+
+ // Indicates whether autosize mode is enabled or not.
+ bool auto_size_enabled_;
+
+ // The maximum size constraints of the container element in autosize mode.
+ gfx::Size max_auto_size_;
+
+ // The minimum size constraints of the container element in autosize mode.
+ gfx::Size min_auto_size_;
+
+ // The size that will be used when autosize mode is disabled.
+ gfx::Size normal_size_;
+
+ // Whether the guest view is inside a plugin document.
+ bool is_full_page_plugin_;
+
+ api::WebContents* api_web_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewGuestDelegate);
+};
+
+} // namespace atom
+
+#endif // ATOM_BROWSER_WEB_VIEW_GUEST_DELEGATE_H_
'atom/browser/ui/x/window_state_watcher.h',
'atom/browser/ui/x/x_window_utils.cc',
'atom/browser/ui/x/x_window_utils.h',
+ 'atom/browser/web_view_guest_delegate.cc',
+ 'atom/browser/web_view_guest_delegate.h',
'atom/browser/web_view_manager.cc',
'atom/browser/web_view_manager.h',
'atom/browser/web_dialog_helper.cc',