| 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 #include "ui/views/widget/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
| 10 #include "ui/aura/client/activation_change_observer.h" | 10 #include "ui/aura/client/activation_change_observer.h" |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 return delegate_->OnMouseEvent(mouse_event); | 810 return delegate_->OnMouseEvent(mouse_event); |
| 811 } | 811 } |
| 812 | 812 |
| 813 ui::TouchStatus NativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 813 ui::TouchStatus NativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 814 DCHECK(window_->IsVisible()); | 814 DCHECK(window_->IsVisible()); |
| 815 TouchEvent touch_event(event); | 815 TouchEvent touch_event(event); |
| 816 return delegate_->OnTouchEvent(touch_event); | 816 return delegate_->OnTouchEvent(touch_event); |
| 817 } | 817 } |
| 818 | 818 |
| 819 ui::GestureStatus NativeWidgetAura::OnGestureEvent( | 819 ui::GestureStatus NativeWidgetAura::OnGestureEvent( |
| 820 ui::GestureEventImpl* event) { | 820 ui::GestureEvent* event) { |
| 821 DCHECK(window_->IsVisible()); | 821 DCHECK(window_->IsVisible()); |
| 822 GestureEvent gesture_event(event); | 822 GestureEvent gesture_event(event); |
| 823 return delegate_->OnGestureEvent(gesture_event); | 823 return delegate_->OnGestureEvent(gesture_event); |
| 824 } | 824 } |
| 825 | 825 |
| 826 bool NativeWidgetAura::CanFocus() { | 826 bool NativeWidgetAura::CanFocus() { |
| 827 return can_activate_; | 827 return can_activate_; |
| 828 } | 828 } |
| 829 | 829 |
| 830 void NativeWidgetAura::OnCaptureLost() { | 830 void NativeWidgetAura::OnCaptureLost() { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 return aura::Env::GetInstance()->is_mouse_button_down(); | 1047 return aura::Env::GetInstance()->is_mouse_button_down(); |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 // static | 1050 // static |
| 1051 bool NativeWidgetPrivate::IsTouchDown() { | 1051 bool NativeWidgetPrivate::IsTouchDown() { |
| 1052 return aura::Env::GetInstance()->is_touch_down(); | 1052 return aura::Env::GetInstance()->is_touch_down(); |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 } // namespace internal | 1055 } // namespace internal |
| 1056 } // namespace views | 1056 } // namespace views |
| OLD | NEW |