Index: ui/views/controls/native/native_view_host_mac.h |
diff --git a/ui/views/controls/native/native_view_host_mac.h b/ui/views/controls/native/native_view_host_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c15ce44917ea1eafd49701cdd1b6815c83ddbf81 |
--- /dev/null |
+++ b/ui/views/controls/native/native_view_host_mac.h |
@@ -0,0 +1,45 @@ |
+// 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_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_ |
+#define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_ |
+ |
+#include "base/macros.h" |
+#include "ui/views/controls/native/native_view_host_wrapper.h" |
+#include "ui/views/views_export.h" |
+ |
+namespace views { |
+ |
+class NativeViewHost; |
+ |
+// Mac implementation of NativeViewHostWrapper. |
+class VIEWS_EXPORT NativeViewHostMac : public NativeViewHostWrapper { |
+ public: |
+ explicit NativeViewHostMac(NativeViewHost* host); |
+ virtual ~NativeViewHostMac(); |
+ |
+ // Overridden from NativeViewHostWrapper: |
+ virtual void AttachNativeView() OVERRIDE; |
+ virtual void NativeViewDetaching(bool destroyed) OVERRIDE; |
+ virtual void AddedToWidget() OVERRIDE; |
+ virtual void RemovedFromWidget() OVERRIDE; |
+ virtual void InstallClip(int x, int y, int w, int h) OVERRIDE; |
+ virtual bool HasInstalledClip() OVERRIDE; |
+ virtual void UninstallClip() OVERRIDE; |
+ virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE; |
+ virtual void HideWidget() OVERRIDE; |
+ virtual void SetFocus() OVERRIDE; |
+ virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
+ virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE; |
+ |
+ private: |
+ // Our associated NativeViewHost. Owns this. |
+ NativeViewHost* host_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NativeViewHostMac); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ |