| 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_ROOT_WINDOW_HOST_MAC_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_MAC_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_HOST_MAC_H_ | 6 #define UI_AURA_ROOT_WINDOW_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 "ui/aura/aura_export.h" | 11 #include "ui/aura/aura_export.h" |
| 12 #include "ui/aura/window_tree_host.h" | 12 #include "ui/aura/window_tree_host.h" |
| 13 #include "ui/gfx/insets.h" | 13 #include "ui/gfx/insets.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 class MouseEvent; | 17 class MouseEvent; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace aura { | 20 namespace aura { |
| 21 | 21 |
| 22 namespace internal { | 22 namespace internal { |
| 23 class TouchEventCalibrate; | 23 class TouchEventCalibrate; |
| 24 } | 24 } |
| 25 | 25 |
| 26 class AURA_EXPORT RootWindowHostMac : public RootWindowHost { | 26 class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost { |
| 27 public: | 27 public: |
| 28 explicit RootWindowHostMac(const gfx::Rect& bounds); | 28 explicit WindowTreeHostMac(const gfx::Rect& bounds); |
| 29 virtual ~RootWindowHostMac(); | 29 virtual ~WindowTreeHostMac(); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // RootWindowHost Overrides. | 32 // WindowTreeHost Overrides. |
| 33 virtual RootWindow* GetRootWindow() OVERRIDE; | 33 virtual RootWindow* GetRootWindow() OVERRIDE; |
| 34 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 34 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 35 virtual void Show() OVERRIDE; | 35 virtual void Show() OVERRIDE; |
| 36 virtual void Hide() OVERRIDE; | 36 virtual void Hide() OVERRIDE; |
| 37 virtual void ToggleFullScreen() OVERRIDE; | 37 virtual void ToggleFullScreen() OVERRIDE; |
| 38 virtual gfx::Rect GetBounds() const OVERRIDE; | 38 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 39 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 39 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 40 virtual gfx::Insets GetInsets() const OVERRIDE; | 40 virtual gfx::Insets GetInsets() const OVERRIDE; |
| 41 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 41 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
| 42 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 42 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 43 virtual void SetCapture() OVERRIDE; | 43 virtual void SetCapture() OVERRIDE; |
| 44 virtual void ReleaseCapture() OVERRIDE; | 44 virtual void ReleaseCapture() OVERRIDE; |
| 45 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; | 45 virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; |
| 46 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 46 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
| 47 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 47 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 48 virtual void UnConfineCursor() OVERRIDE; | 48 virtual void UnConfineCursor() OVERRIDE; |
| 49 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; | 49 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; |
| 50 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 50 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 51 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; | 51 virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; |
| 52 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 52 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 53 virtual void PrepareForShutdown() OVERRIDE; | 53 virtual void PrepareForShutdown() OVERRIDE; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 base::scoped_nsobject<NSWindow> window_; | 56 base::scoped_nsobject<NSWindow> window_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(RootWindowHostMac); | 58 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace aura | 61 } // namespace aura |
| 62 | 62 |
| 63 #endif // UI_AURA_ROOT_WINDOW_HOST_MAC_H_ | 63 #endif // UI_AURA_ROOT_WINDOW_HOST_MAC_H_ |
| OLD | NEW |