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 UI_AURA_WINDOW_TREE_HOST_MAC_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_MAC_H_ |
6 #define UI_AURA_WINDOW_TREE_HOST_MAC_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_MAC_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/aura/aura_export.h" | 12 #include "ui/aura/aura_export.h" |
13 #include "ui/aura/window_tree_host.h" | 13 #include "ui/aura/window_tree_host.h" |
14 #include "ui/gfx/geometry/insets.h" | 14 #include "ui/gfx/geometry/insets.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 | 16 |
17 namespace ui { | |
18 class MouseEvent; | |
19 } | |
20 | |
21 namespace aura { | 17 namespace aura { |
22 | 18 |
23 class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost { | 19 class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost { |
24 public: | 20 public: |
25 explicit WindowTreeHostMac(const gfx::Rect& bounds); | 21 explicit WindowTreeHostMac(const gfx::Rect& bounds); |
26 ~WindowTreeHostMac() override; | 22 ~WindowTreeHostMac() override; |
27 | 23 |
28 private: | 24 private: |
29 // WindowTreeHost Overrides. | 25 // WindowTreeHost Overrides. |
30 ui::EventSource* GetEventSource() override; | 26 ui::EventSource* GetEventSource() override; |
(...skipping 17 matching lines...) Expand all Loading... |
48 | 44 |
49 private: | 45 private: |
50 base::scoped_nsobject<NSWindow> window_; | 46 base::scoped_nsobject<NSWindow> window_; |
51 | 47 |
52 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac); | 48 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac); |
53 }; | 49 }; |
54 | 50 |
55 } // namespace aura | 51 } // namespace aura |
56 | 52 |
57 #endif // UI_AURA_WINDOW_TREE_HOST_MAC_H_ | 53 #endif // UI_AURA_WINDOW_TREE_HOST_MAC_H_ |
OLD | NEW |