OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_ |
| 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/views/controls/native/native_view_host_wrapper.h" |
| 11 #include "ui/views/views_export.h" |
| 12 |
| 13 @class BridgedContentView; |
| 14 |
| 15 namespace views { |
| 16 |
| 17 class NativeViewHost; |
| 18 class Widget; |
| 19 |
| 20 // Mac implementation of NativeViewHostWrapper. |
| 21 class VIEWS_EXPORT NativeViewHostMac : public NativeViewHostWrapper { |
| 22 public: |
| 23 explicit NativeViewHostMac(NativeViewHost* host); |
| 24 virtual ~NativeViewHostMac(); |
| 25 |
| 26 // Overridden from NativeViewHostWrapper: |
| 27 virtual void AttachNativeView() OVERRIDE; |
| 28 virtual void NativeViewDetaching(bool destroyed) OVERRIDE; |
| 29 virtual void AddedToWidget() OVERRIDE; |
| 30 virtual void RemovedFromWidget() OVERRIDE; |
| 31 virtual void InstallClip(int x, int y, int w, int h) OVERRIDE; |
| 32 virtual bool HasInstalledClip() OVERRIDE; |
| 33 virtual void UninstallClip() OVERRIDE; |
| 34 virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE; |
| 35 virtual void HideWidget() OVERRIDE; |
| 36 virtual void SetFocus() OVERRIDE; |
| 37 virtual void SetNativeViewVisible(bool visible) OVERRIDE; |
| 38 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 39 virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE; |
| 40 |
| 41 private: |
| 42 // Our associated NativeViewHost. Owns this. |
| 43 NativeViewHost* host_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(NativeViewHostMac); |
| 46 }; |
| 47 |
| 48 } // namespace views |
| 49 |
| 50 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ |
OLD | NEW |