OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "ui/aura/window_delegate.h" | 8 #include "ui/aura/window_delegate.h" |
9 #include "ui/views/widget/native_widget_private.h" | 9 #include "ui/views/widget/native_widget_private.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 const gfx::Point& location) OVERRIDE; | 120 const gfx::Point& location) OVERRIDE; |
121 virtual bool CanFocus() OVERRIDE; | 121 virtual bool CanFocus() OVERRIDE; |
122 virtual void OnCaptureLost() OVERRIDE; | 122 virtual void OnCaptureLost() OVERRIDE; |
123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
124 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 124 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
125 virtual void OnWindowDestroying() OVERRIDE; | 125 virtual void OnWindowDestroying() OVERRIDE; |
126 virtual void OnWindowDestroyed() OVERRIDE; | 126 virtual void OnWindowDestroyed() OVERRIDE; |
127 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 127 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
128 virtual bool HasHitTestMask() const OVERRIDE; | 128 virtual bool HasHitTestMask() const OVERRIDE; |
129 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 129 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 130 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
130 | 131 |
131 // Overridden from ui::EventHandler: | 132 // Overridden from ui::EventHandler: |
132 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 133 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
133 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 134 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
134 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 135 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
135 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 136 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
136 | 137 |
137 scoped_ptr<DesktopRootWindowHost> desktop_root_window_host_; | 138 scoped_ptr<DesktopRootWindowHost> desktop_root_window_host_; |
138 aura::Window* window_; | 139 aura::Window* window_; |
139 Widget::InitParams::Ownership ownership_; | 140 Widget::InitParams::Ownership ownership_; |
140 internal::NativeWidgetDelegate* native_widget_delegate_; | 141 internal::NativeWidgetDelegate* native_widget_delegate_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 143 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace views | 146 } // namespace views |
146 | 147 |
147 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ | 148 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |