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