| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 #ifndef VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_ | |
| 6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "views/controls/native/native_view_host_wrapper.h" | |
| 11 | |
| 12 namespace views { | |
| 13 | |
| 14 class NativeViewHost; | |
| 15 | |
| 16 // A Views implementation of NativeViewHostWrapper | |
| 17 class NativeViewHostViews : public NativeViewHostWrapper { | |
| 18 public: | |
| 19 explicit NativeViewHostViews(NativeViewHost* host); | |
| 20 virtual ~NativeViewHostViews(); | |
| 21 | |
| 22 // Overridden from NativeViewHostWrapper: | |
| 23 virtual void NativeViewAttached(); | |
| 24 virtual void NativeViewDetaching(bool destroyed); | |
| 25 virtual void AddedToWidget(); | |
| 26 virtual void RemovedFromWidget(); | |
| 27 virtual void InstallClip(int x, int y, int w, int h); | |
| 28 virtual bool HasInstalledClip(); | |
| 29 virtual void UninstallClip(); | |
| 30 virtual void ShowWidget(int x, int y, int w, int h); | |
| 31 virtual void HideWidget(); | |
| 32 virtual void SetFocus(); | |
| 33 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); | |
| 34 | |
| 35 private: | |
| 36 // Our associated NativeViewHost. | |
| 37 NativeViewHost* host_; | |
| 38 | |
| 39 // Have we installed a clip region? | |
| 40 bool installed_clip_; | |
| 41 | |
| 42 DISALLOW_COPY_AND_ASSIGN(NativeViewHostViews); | |
| 43 }; | |
| 44 | |
| 45 } // namespace views | |
| 46 | |
| 47 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_ | |
| OLD | NEW |