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

Side by Side Diff: ui/views/controls/native/native_view_host_mac.h

Issue 530933002: MacViews: Implement NativeViewHostMac (take 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to the "real" patch Created 6 years, 3 months 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
OLDNEW
(Empty)
1 // Copyright 2014 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 UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_MAC_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/native/native_view_host_wrapper.h"
11 #include "ui/views/views_export.h"
12
13 @class BridgedContentView;
14
15 namespace views {
16
17 class NativeViewHost;
18 class Widget;
19
20 // Mac implementation of NativeViewHostWrapper.
21 class VIEWS_EXPORT NativeViewHostMac : public NativeViewHostWrapper {
22 public:
23 explicit NativeViewHostMac(NativeViewHost* host);
24 virtual ~NativeViewHostMac();
25
26 // Overridden from NativeViewHostWrapper:
27 virtual void AttachNativeView() OVERRIDE;
28 virtual void NativeViewDetaching(bool destroyed) OVERRIDE;
29 virtual void AddedToWidget() OVERRIDE;
30 virtual void RemovedFromWidget() OVERRIDE;
31 virtual void InstallClip(int x, int y, int w, int h) OVERRIDE;
32 virtual bool HasInstalledClip() OVERRIDE;
33 virtual void UninstallClip() OVERRIDE;
34 virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE;
35 virtual void HideWidget() OVERRIDE;
36 virtual void SetFocus() OVERRIDE;
37 virtual void SetNativeViewVisible(bool visible) OVERRIDE;
38 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
39 virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE;
40
41 private:
42 // Our associated NativeViewHost. Owns this.
43 NativeViewHost* host_;
44
45 DISALLOW_COPY_AND_ASSIGN(NativeViewHostMac);
46 };
47
48 } // namespace views
49
50 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698