#ifndef CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_
#define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_
#include "ui/events/event_handler.h"
class BrowserView;
namespace aura {
class Window;
}
class JavascriptAppModalEventBlockerX11 : public ui::EventHandler {
public:
explicit JavascriptAppModalEventBlockerX11(aura::Window* app_modal_window);
virtual ~JavascriptAppModalEventBlockerX11();
private:
bool ShouldStopPropagationTo(ui::EventTarget* target);
virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
aura::Window* modal_window_;
BrowserView* browser_view_with_modal_dialog_;
DISALLOW_COPY_AND_ASSIGN(JavascriptAppModalEventBlockerX11);
};
#endif