// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_AURA_WINDOW_TREE_HOST_MAC_H_ #define UI_AURA_WINDOW_TREE_HOST_MAC_H_ #include <vector> #include "base/mac/scoped_nsobject.h" #include "ui/aura/aura_export.h" #include "ui/aura/window_tree_host.h" #include "ui/gfx/insets.h" #include "ui/gfx/rect.h" namespace ui { class MouseEvent; } namespace aura { namespace internal { class TouchEventCalibrate; } class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost { public: explicit WindowTreeHostMac(const gfx::Rect& bounds); virtual ~WindowTreeHostMac(); private: // WindowTreeHost Overrides. virtual ui::EventSource* GetEventSource() OVERRIDE; virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; virtual void Show() OVERRIDE; virtual void Hide() OVERRIDE; virtual void ToggleFullScreen() OVERRIDE; virtual gfx::Rect GetBounds() const OVERRIDE; virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; virtual gfx::Insets GetInsets() const OVERRIDE; virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; virtual void SetCapture() OVERRIDE; virtual void ReleaseCapture() OVERRIDE; virtual bool ConfineCursorToRootWindow() OVERRIDE; virtual void UnConfineCursor() OVERRIDE; virtual void SetCursorNative(gfx::NativeCursor cursor_type) OVERRIDE; virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; private: base::scoped_nsobject<NSWindow> window_; DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac); }; } // namespace aura #endif // UI_AURA_WINDOW_TREE_HOST_MAC_H_