OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/events/event_handler.h" | 9 #include "ui/events/event_handler.h" |
10 | 10 |
11 class BrowserView; | 11 class BrowserView; |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 class Window; | 14 class Window; |
15 } | 15 } |
16 | 16 |
| 17 namespace ui { |
| 18 class EventTarget; |
| 19 } |
| 20 |
17 // JavascriptAppModalEventBlockerX11 blocks events to all browser windows except | 21 // JavascriptAppModalEventBlockerX11 blocks events to all browser windows except |
18 // the browser window which hosts |app_modal_window| for the duration of its | 22 // the browser window which hosts |app_modal_window| for the duration of its |
19 // lifetime. JavascriptAppModalEventBlockerX11 should not outlive | 23 // lifetime. JavascriptAppModalEventBlockerX11 should not outlive |
20 // |app_modal_window|. | 24 // |app_modal_window|. |
21 // TODO(pkotwicz): Merge this class into WindowModalityController. | 25 // TODO(pkotwicz): Merge this class into WindowModalityController. |
22 class JavascriptAppModalEventBlockerX11 : public ui::EventHandler { | 26 class JavascriptAppModalEventBlockerX11 : public ui::EventHandler { |
23 public: | 27 public: |
24 explicit JavascriptAppModalEventBlockerX11(aura::Window* app_modal_window); | 28 explicit JavascriptAppModalEventBlockerX11(aura::Window* app_modal_window); |
25 ~JavascriptAppModalEventBlockerX11() override; | 29 ~JavascriptAppModalEventBlockerX11() override; |
26 | 30 |
(...skipping 10 matching lines...) Expand all Loading... |
37 // The app modal dialog. | 41 // The app modal dialog. |
38 aura::Window* modal_window_; | 42 aura::Window* modal_window_; |
39 | 43 |
40 // The BrowserView which hosts the app modal dialog. | 44 // The BrowserView which hosts the app modal dialog. |
41 BrowserView* browser_view_with_modal_dialog_; | 45 BrowserView* browser_view_with_modal_dialog_; |
42 | 46 |
43 DISALLOW_COPY_AND_ASSIGN(JavascriptAppModalEventBlockerX11); | 47 DISALLOW_COPY_AND_ASSIGN(JavascriptAppModalEventBlockerX11); |
44 }; | 48 }; |
45 | 49 |
46 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ | 50 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_EVENT_BLOCKER_X11_H_ |
OLD | NEW |