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_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ |
7 | 7 |
8 #include "ui/events/event_handler.h" | 8 #include "ui/events/event_handler.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
9 | 10 |
10 class Browser; | 11 class BrowserView; |
11 | 12 |
12 class BrowserCommandHandlerX11 : public ui::EventHandler { | 13 class BrowserCommandHandlerX11 : public ui::EventHandler { |
13 public: | 14 public: |
14 explicit BrowserCommandHandlerX11(Browser* browser); | 15 explicit BrowserCommandHandlerX11(BrowserView* browser_view); |
15 ~BrowserCommandHandlerX11() override; | 16 ~BrowserCommandHandlerX11() override; |
16 | 17 |
17 private: | 18 private: |
18 // ui::EventHandler: | 19 // ui::EventHandler: |
19 void OnMouseEvent(ui::MouseEvent* event) override; | 20 void OnMouseEvent(ui::MouseEvent* event) override; |
20 | 21 |
21 Browser* browser_; | 22 BrowserView* browser_view_; |
22 | 23 |
23 DISALLOW_COPY_AND_ASSIGN(BrowserCommandHandlerX11); | 24 DISALLOW_COPY_AND_ASSIGN(BrowserCommandHandlerX11); |
24 }; | 25 }; |
25 | 26 |
26 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ | 27 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_COMMAND_HANDLER_X11_H_ |
OLD | NEW |