1 // Copyright (c) 2012 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.
5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_
8 #include "base/basictypes.h"
9 #include "ui/views/controls/native/native_view_host_wrapper.h"
15 // A Windows implementation of NativeViewHostWrapper
16 class NativeViewHostWin : public NativeViewHostWrapper {
18 explicit NativeViewHostWin(NativeViewHost* host);
19 virtual ~NativeViewHostWin();
21 // Overridden from NativeViewHostWrapper:
22 virtual void NativeViewWillAttach();
23 virtual void NativeViewDetaching(bool destroyed);
24 virtual void AddedToWidget();
25 virtual void RemovedFromWidget();
26 virtual void InstallClip(int x, int y, int w, int h);
27 virtual bool HasInstalledClip();
28 virtual void UninstallClip();
29 virtual void ShowWidget(int x, int y, int w, int h);
30 virtual void HideWidget();
31 virtual void SetFocus();
32 virtual gfx::NativeViewAccessible GetNativeViewAccessible();
35 // Our associated NativeViewHost.
36 NativeViewHost* host_;
38 // Have we installed a region on the gfx::NativeView used to clip to only the
39 // visible portion of the gfx::NativeView ?
42 DISALLOW_COPY_AND_ASSIGN(NativeViewHostWin);
47 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_