}
}
-bool WebContents::AddMessageToConsole(content::WebContents* source,
- int32_t level,
- const base::string16& message,
- int32_t line_no,
- const base::string16& source_id) {
+bool WebContents::DidAddMessageToConsole(content::WebContents* source,
+ int32_t level,
+ const base::string16& message,
+ int32_t line_no,
+ const base::string16& source_id) {
if (type_ == BROWSER_WINDOW || type_ == OFF_SCREEN) {
return false;
} else {
}
void WebContents::WebContentsCreated(content::WebContents* source_contents,
+ int opener_render_process_id,
int opener_render_frame_id,
const std::string& frame_name,
const GURL& target_url,
Emit("leave-html-full-screen");
}
-void WebContents::RendererUnresponsive(content::WebContents* source) {
+void WebContents::RendererUnresponsive(
+ content::WebContents* source,
+ const content::WebContentsUnresponsiveState& unresponsive_state) {
Emit("unresponsive");
if ((type_ == BROWSER_WINDOW || type_ == OFF_SCREEN) && owner_window())
owner_window()->RendererUnresponsive(source);
Emit("plugin-crashed", info.name, info.version);
}
-void WebContents::MediaStartedPlaying(const MediaPlayerId& id) {
+void WebContents::MediaStartedPlaying(const MediaPlayerInfo& video_type,
+ const MediaPlayerId& id) {
Emit("media-started-playing");
}
-void WebContents::MediaStoppedPlaying(const MediaPlayerId& id) {
+void WebContents::MediaStoppedPlaying(const MediaPlayerInfo& video_type,
+ const MediaPlayerId& id) {
Emit("media-paused");
}
}
void WebContents::DidGetRedirectForResourceRequest(
- content::RenderFrameHost* render_frame_host,
const content::ResourceRedirectDetails& details) {
Emit("did-get-redirect-request",
details.url,
const mate::Dictionary& options);
// content::WebContentsDelegate:
- bool AddMessageToConsole(content::WebContents* source,
- int32_t level,
- const base::string16& message,
- int32_t line_no,
- const base::string16& source_id) override;
+ bool DidAddMessageToConsole(content::WebContents* source,
+ int32_t level,
+ const base::string16& message,
+ int32_t line_no,
+ const base::string16& source_id) override;
void WebContentsCreated(content::WebContents* source_contents,
+ int opener_render_process_id,
int opener_render_frame_id,
const std::string& frame_name,
const GURL& target_url,
void EnterFullscreenModeForTab(content::WebContents* source,
const GURL& origin) override;
void ExitFullscreenModeForTab(content::WebContents* source) override;
- void RendererUnresponsive(content::WebContents* source) override;
+ void RendererUnresponsive(
+ content::WebContents* source,
+ const content::WebContentsUnresponsiveState& unresponsive_state) override;
void RendererResponsive(content::WebContents* source) override;
bool HandleContextMenu(const content::ContextMenuParams& params) override;
bool OnGoToEntryOffset(int offset) override;
void DidGetResourceResponseStart(
const content::ResourceRequestDetails& details) override;
void DidGetRedirectForResourceRequest(
- content::RenderFrameHost* render_frame_host,
const content::ResourceRedirectDetails& details) override;
void DidFinishNavigation(
content::NavigationHandle* navigation_handle) override;
const std::vector<content::FaviconURL>& urls) override;
void PluginCrashed(const base::FilePath& plugin_path,
base::ProcessId plugin_pid) override;
- void MediaStartedPlaying(const MediaPlayerId& id) override;
- void MediaStoppedPlaying(const MediaPlayerId& id) override;
+ void MediaStartedPlaying(const MediaPlayerInfo& video_type,
+ const MediaPlayerId& id) override;
+ void MediaStoppedPlaying(const MediaPlayerInfo& video_type,
+ const MediaPlayerId& id) override;
void DidChangeThemeColor(SkColor theme_color) override;
// brightray::InspectableWebContentsDelegate:
return file_system_paths.find(file_system_path) != file_system_paths.end();
}
-content::SecurityStyle SecurityLevelToSecurityStyle(
- SecurityStateModel::SecurityLevel security_level) {
+blink::WebSecurityStyle SecurityLevelToSecurityStyle(
+ security_state::SecurityLevel security_level) {
switch (security_level) {
- case SecurityStateModel::NONE:
- return content::SECURITY_STYLE_UNAUTHENTICATED;
- case SecurityStateModel::SECURITY_WARNING:
- case SecurityStateModel::SECURITY_POLICY_WARNING:
- return content::SECURITY_STYLE_WARNING;
- case SecurityStateModel::EV_SECURE:
- case SecurityStateModel::SECURE:
- return content::SECURITY_STYLE_AUTHENTICATED;
- case SecurityStateModel::SECURITY_ERROR:
- return content::SECURITY_STYLE_AUTHENTICATION_BROKEN;
+ case security_state::NONE:
+ case security_state::HTTP_SHOW_WARNING:
+ return blink::WebSecurityStyleUnauthenticated;
+ case security_state::SECURITY_WARNING:
+ case security_state::SECURE_WITH_POLICY_INSTALLED_CERT:
+ return blink::WebSecurityStyleWarning;
+ case security_state::EV_SECURE:
+ case security_state::SECURE:
+ return blink::WebSecurityStyleAuthenticated;
+ case security_state::DANGEROUS:
+ return blink::WebSecurityStyleAuthenticationBroken;
}
- return content::SECURITY_STYLE_UNKNOWN;
+ NOTREACHED();
+ return blink::WebSecurityStyleUnknown;
}
} // namespace
return html_fullscreen_;
}
-content::SecurityStyle CommonWebContentsDelegate::GetSecurityStyle(
+blink::WebSecurityStyle CommonWebContentsDelegate::GetSecurityStyle(
content::WebContents* web_contents,
content::SecurityStyleExplanations* explanations) {
auto model_client =
const SecurityStateModel::SecurityInfo& security_info =
model_client->GetSecurityInfo();
- const content::SecurityStyle security_style =
+ const blink::WebSecurityStyle security_style =
SecurityLevelToSecurityStyle(security_info.security_level);
explanations->ran_insecure_content_style =
void ExitFullscreenModeForTab(content::WebContents* source) override;
bool IsFullscreenForTabOrPending(
const content::WebContents* source) const override;
- content::SecurityStyle GetSecurityStyle(
+ blink::WebSecurityStyle GetSecurityStyle(
content::WebContents* web_contents,
content::SecurityStyleExplanations* explanations) override;
void HandleKeyboardEvent(