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

Unified Diff: views/controls/native/native_view_host_views.h

Issue 5785001: A NativeViewHostViews class for embedding views inside NativeHostView instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed up the patchset to not include files that I pulled in by accident in #3 Created 10 years 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
« no previous file with comments | « views/controls/native/native_view_host.cc ('k') | views/controls/native/native_view_host_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_views.h
diff --git a/views/controls/native/native_view_host_views.h b/views/controls/native/native_view_host_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..891cf49d7e44f6d4dc2ab07ff4f6b5a96a46ed7f
--- /dev/null
+++ b/views/controls/native/native_view_host_views.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2010 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 VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_
+#define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "views/controls/native/native_view_host_wrapper.h"
+
+namespace views {
+
+class NativeViewHost;
+
+// A Views implementation of NativeViewHostWrapper
+class NativeViewHostViews : public NativeViewHostWrapper {
+ public:
+ explicit NativeViewHostViews(NativeViewHost* host);
+ virtual ~NativeViewHostViews();
+
+ // Overridden from NativeViewHostWrapper:
+ virtual void NativeViewAttached();
+ virtual void NativeViewDetaching(bool destroyed);
+ virtual void AddedToWidget();
+ virtual void RemovedFromWidget();
+ virtual void InstallClip(int x, int y, int w, int h);
+ virtual bool HasInstalledClip();
+ virtual void UninstallClip();
+ virtual void ShowWidget(int x, int y, int w, int h);
+ virtual void HideWidget();
+ virtual void SetFocus();
+
+ private:
+ // Our associated NativeViewHost.
+ NativeViewHost* host_;
+
+ // Have we installed a clip region?
+ bool installed_clip_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeViewHostViews);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_
« no previous file with comments | « views/controls/native/native_view_host.cc ('k') | views/controls/native/native_view_host_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698