| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ |
| 7 | 7 |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class DesktopWindowTreeHost; | 26 class DesktopWindowTreeHost; |
| 27 class NativeWidgetAura; | 27 class NativeWidgetAura; |
| 28 | 28 |
| 29 // An EventFilter that sets properties on X11 windows. | 29 // An EventFilter that sets properties on X11 windows. |
| 30 class VIEWS_EXPORT X11WindowEventFilter : public ui::EventHandler { | 30 class VIEWS_EXPORT X11WindowEventFilter : public ui::EventHandler { |
| 31 public: | 31 public: |
| 32 explicit X11WindowEventFilter(DesktopWindowTreeHost* window_tree_host); | 32 explicit X11WindowEventFilter(DesktopWindowTreeHost* window_tree_host); |
| 33 virtual ~X11WindowEventFilter(); | 33 virtual ~X11WindowEventFilter(); |
| 34 | 34 |
| 35 // Overridden from ui::EventHandler: | 35 // Overridden from ui::EventHandler: |
| 36 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 36 virtual void OnMouseEvent(ui::MouseEvent* event) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // Called when the user clicked the caption area. | 39 // Called when the user clicked the caption area. |
| 40 void OnClickedCaption(ui::MouseEvent* event, | 40 void OnClickedCaption(ui::MouseEvent* event, |
| 41 int previous_click_component); | 41 int previous_click_component); |
| 42 | 42 |
| 43 // Called when the user clicked the maximize button. | 43 // Called when the user clicked the maximize button. |
| 44 void OnClickedMaximizeButton(ui::MouseEvent* event); | 44 void OnClickedMaximizeButton(ui::MouseEvent* event); |
| 45 | 45 |
| 46 void ToggleMaximizedState(); | 46 void ToggleMaximizedState(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 70 // initial click. Acting on a double click should only occur for matching | 70 // initial click. Acting on a double click should only occur for matching |
| 71 // components. | 71 // components. |
| 72 int click_component_; | 72 int click_component_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(X11WindowEventFilter); | 74 DISALLOW_COPY_AND_ASSIGN(X11WindowEventFilter); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace views | 77 } // namespace views |
| 78 | 78 |
| 79 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ | 79 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WINDOW_EVENT_FILTER_H_ |
| OLD | NEW |