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

Unified Diff: chrome/browser/renderer_host/render_process_host.h

Issue 160494: Disable input events when a JS dialog is showing. (Closed)
Patch Set: beforeunload Created 11 years, 4 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 | « no previous file | chrome/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_process_host.h
diff --git a/chrome/browser/renderer_host/render_process_host.h b/chrome/browser/renderer_host/render_process_host.h
index c091e857bce71dbcc0f9183079ae779dd1224b68..ec5d198bd99d1820142691839d53981e87643dc5 100644
--- a/chrome/browser/renderer_host/render_process_host.h
+++ b/chrome/browser/renderer_host/render_process_host.h
@@ -100,6 +100,13 @@ class RenderProcessHost : public IPC::Channel::Sender,
// initialize a new renderer in place of the current one.
void UpdateMaxPageID(int32 page_id);
+ void set_ignore_input_events(bool ignore_input_events) {
+ ignore_input_events_ = ignore_input_events;
+ }
+ bool ignore_input_events() {
+ return ignore_input_events_;
+ }
+
// Virtual interface ---------------------------------------------------------
// Initialize the new renderer process, returning true on success. This must
@@ -242,6 +249,10 @@ class RenderProcessHost : public IPC::Channel::Sender,
// doesn't.
bool sudden_termination_allowed_;
+ // Set to true if we shouldn't send input events. We actually do the
+ // filtering for this at the render widget level.
+ bool ignore_input_events_;
+
// See getter above.
static bool run_renderer_in_process_;
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698