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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/aura/window_observer.h" 11 #include "ui/aura/window_observer.h"
12 #include "ui/views/controls/native/native_view_host_wrapper.h" 12 #include "ui/views/controls/native/native_view_host_wrapper.h"
13 #include "ui/views/views_export.h" 13 #include "ui/views/views_export.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 class NativeViewHost; 17 class NativeViewHost;
18 18
19 // Aura implementation of NativeViewHostWrapper. 19 // Aura implementation of NativeViewHostWrapper.
20 class VIEWS_EXPORT NativeViewHostAura : public NativeViewHostWrapper, 20 class VIEWS_EXPORT NativeViewHostAura : public NativeViewHostWrapper,
21 public aura::WindowObserver { 21 public aura::WindowObserver {
22 public: 22 public:
23 explicit NativeViewHostAura(NativeViewHost* host); 23 explicit NativeViewHostAura(NativeViewHost* host);
24 virtual ~NativeViewHostAura(); 24 virtual ~NativeViewHostAura();
25 25
26 // Overridden from NativeViewHostWrapper: 26 // Overridden from NativeViewHostWrapper:
27 virtual void AttachNativeView() OVERRIDE; 27 virtual void AttachNativeView() override;
28 virtual void NativeViewDetaching(bool destroyed) OVERRIDE; 28 virtual void NativeViewDetaching(bool destroyed) override;
29 virtual void AddedToWidget() OVERRIDE; 29 virtual void AddedToWidget() override;
30 virtual void RemovedFromWidget() OVERRIDE; 30 virtual void RemovedFromWidget() override;
31 virtual void InstallClip(int x, int y, int w, int h) OVERRIDE; 31 virtual void InstallClip(int x, int y, int w, int h) override;
32 virtual bool HasInstalledClip() OVERRIDE; 32 virtual bool HasInstalledClip() override;
33 virtual void UninstallClip() OVERRIDE; 33 virtual void UninstallClip() override;
34 virtual void ShowWidget(int x, int y, int w, int h) OVERRIDE; 34 virtual void ShowWidget(int x, int y, int w, int h) override;
35 virtual void HideWidget() OVERRIDE; 35 virtual void HideWidget() override;
36 virtual void SetFocus() OVERRIDE; 36 virtual void SetFocus() override;
37 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 37 virtual gfx::NativeViewAccessible GetNativeViewAccessible() override;
38 virtual gfx::NativeCursor GetCursor(int x, int y) OVERRIDE; 38 virtual gfx::NativeCursor GetCursor(int x, int y) override;
39 39
40 private: 40 private:
41 friend class NativeViewHostAuraTest; 41 friend class NativeViewHostAuraTest;
42 42
43 class ClippingWindowDelegate; 43 class ClippingWindowDelegate;
44 44
45 // Overridden from aura::WindowObserver: 45 // Overridden from aura::WindowObserver:
46 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 46 virtual void OnWindowDestroying(aura::Window* window) override;
47 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 47 virtual void OnWindowDestroyed(aura::Window* window) override;
48 48
49 // Reparents the native view with the clipping window existing between it and 49 // Reparents the native view with the clipping window existing between it and
50 // its old parent, so that the fast resize path works. 50 // its old parent, so that the fast resize path works.
51 void AddClippingWindow(); 51 void AddClippingWindow();
52 52
53 // If the native view has been reparented via AddClippingWindow, this call 53 // If the native view has been reparented via AddClippingWindow, this call
54 // undoes it. 54 // undoes it.
55 void RemoveClippingWindow(); 55 void RemoveClippingWindow();
56 56
57 // Our associated NativeViewHost. 57 // Our associated NativeViewHost.
58 NativeViewHost* host_; 58 NativeViewHost* host_;
59 59
60 scoped_ptr<ClippingWindowDelegate> clipping_window_delegate_; 60 scoped_ptr<ClippingWindowDelegate> clipping_window_delegate_;
61 61
62 // Window that exists between the native view and the parent that allows for 62 // Window that exists between the native view and the parent that allows for
63 // clipping to occur. This is positioned in the coordinate space of 63 // clipping to occur. This is positioned in the coordinate space of
64 // host_->GetWidget(). 64 // host_->GetWidget().
65 aura::Window clipping_window_; 65 aura::Window clipping_window_;
66 scoped_ptr<gfx::Rect> clip_rect_; 66 scoped_ptr<gfx::Rect> clip_rect_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(NativeViewHostAura); 68 DISALLOW_COPY_AND_ASSIGN(NativeViewHostAura);
69 }; 69 };
70 70
71 } // namespace views 71 } // namespace views
72 72
73 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_ 73 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/controls/native/native_view_host.h ('k') | ui/views/controls/native/native_view_host_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698