| OLD | NEW |
| 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 VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "aura/window_delegate.h" | |
| 10 #include "views/widget/native_widget_private.h" | 9 #include "views/widget/native_widget_private.h" |
| 11 | 10 |
| 12 namespace views { | 11 namespace views { |
| 13 | 12 |
| 14 class NativeWidgetAura : public internal::NativeWidgetPrivate, | 13 class NativeWidgetAura : public internal::NativeWidgetPrivate { |
| 15 public aura::WindowDelegate { | |
| 16 public: | 14 public: |
| 17 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); | 15 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); |
| 18 virtual ~NativeWidgetAura(); | 16 virtual ~NativeWidgetAura(); |
| 19 | 17 |
| 20 // Overridden from internal::NativeWidgetPrivate: | 18 // Overridden from internal::NativeWidgetPrivate: |
| 21 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; | 19 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; |
| 22 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 20 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 23 virtual void UpdateFrameAfterFrameChange() OVERRIDE; | 21 virtual void UpdateFrameAfterFrameChange() OVERRIDE; |
| 24 virtual bool ShouldUseNativeFrame() const OVERRIDE; | 22 virtual bool ShouldUseNativeFrame() const OVERRIDE; |
| 25 virtual void FrameTypeChanged() OVERRIDE; | 23 virtual void FrameTypeChanged() OVERRIDE; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const ui::OSExchangeData& data, | 90 const ui::OSExchangeData& data, |
| 93 int operation) OVERRIDE; | 91 int operation) OVERRIDE; |
| 94 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 92 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 95 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 93 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 96 virtual void ClearNativeFocus() OVERRIDE; | 94 virtual void ClearNativeFocus() OVERRIDE; |
| 97 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; | 95 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; |
| 98 virtual bool ConvertPointFromAncestor( | 96 virtual bool ConvertPointFromAncestor( |
| 99 const Widget* ancestor, gfx::Point* point) const OVERRIDE; | 97 const Widget* ancestor, gfx::Point* point) const OVERRIDE; |
| 100 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; | 98 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; |
| 101 | 99 |
| 102 // Overridden from aura::WindowDelegate: | |
| 103 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | |
| 104 | |
| 105 private: | 100 private: |
| 106 internal::NativeWidgetDelegate* delegate_; | |
| 107 | |
| 108 aura::Window* window_; | |
| 109 | |
| 110 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 101 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 111 }; | 102 }; |
| 112 | 103 |
| 113 } // namespace views | 104 } // namespace views |
| 114 | 105 |
| 115 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 106 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |