Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: ui/views/controls/native/native_view_host_mac.h

Issue 530933002: MacViews: Implement NativeViewHostMac (take 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: acceptsFirstResponder, cleanup strays Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « ui/views/controls/native/native_view_host_aura_unittest.cc ('k') | ui/views/controls/native/native_view_host_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698