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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« 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