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_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 140 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
141 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 141 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
142 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; | 142 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; |
143 virtual bool CanFocus() OVERRIDE; | 143 virtual bool CanFocus() OVERRIDE; |
144 virtual void OnCaptureLost() OVERRIDE; | 144 virtual void OnCaptureLost() OVERRIDE; |
145 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 145 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
147 virtual void OnWindowDestroying() OVERRIDE; | 147 virtual void OnWindowDestroying() OVERRIDE; |
148 virtual void OnWindowDestroyed() OVERRIDE; | 148 virtual void OnWindowDestroyed() OVERRIDE; |
149 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 149 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; |
| 150 virtual bool HasHitTestMask() const OVERRIDE; |
| 151 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
150 | 152 |
151 // Overridden from aura::client::ActivationDelegate: | 153 // Overridden from aura::client::ActivationDelegate: |
152 virtual bool ShouldActivate(const aura::Event* event) OVERRIDE; | 154 virtual bool ShouldActivate(const aura::Event* event) OVERRIDE; |
153 virtual void OnActivated() OVERRIDE; | 155 virtual void OnActivated() OVERRIDE; |
154 virtual void OnLostActive() OVERRIDE; | 156 virtual void OnLostActive() OVERRIDE; |
155 | 157 |
156 // Overridden from aura::client::DragDropDelegate: | 158 // Overridden from aura::client::DragDropDelegate: |
157 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; | 159 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; |
158 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; | 160 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; |
159 virtual void OnDragExited() OVERRIDE; | 161 virtual void OnDragExited() OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 196 |
195 scoped_ptr<DropHelper> drop_helper_; | 197 scoped_ptr<DropHelper> drop_helper_; |
196 int last_drop_operation_; | 198 int last_drop_operation_; |
197 | 199 |
198 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 200 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
199 }; | 201 }; |
200 | 202 |
201 } // namespace views | 203 } // namespace views |
202 | 204 |
203 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 205 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |