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

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: Back to the "real" patch 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..8be68ff913df150a99dfc23540f058a02c2c2971
--- /dev/null
+++ b/ui/views/controls/native/native_view_host_mac.h
@@ -0,0 +1,50 @@
+// 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 "base/memory/scoped_ptr.h"
+#include "ui/views/controls/native/native_view_host_wrapper.h"
+#include "ui/views/views_export.h"
+
+@class BridgedContentView;
+
+namespace views {
+
+class NativeViewHost;
+class Widget;
+
+// 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 void SetNativeViewVisible(bool visible) 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_

Powered by Google App Engine
This is Rietveld 408576698