OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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 |
| 34 private: |
| 35 // Our associated NativeViewHost. |
| 36 NativeViewHost* host_; |
| 37 |
| 38 // Have we installed a clip region? |
| 39 bool installed_clip_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(NativeViewHostViews); |
| 42 }; |
| 43 |
| 44 } // namespace views |
| 45 |
| 46 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_VIEWS_H_ |
OLD | NEW |