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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 // Convert unprocessed scroll events into wheel events. | 803 // Convert unprocessed scroll events into wheel events. |
804 MouseWheelEvent wheel_event(scroll_event); | 804 MouseWheelEvent wheel_event(scroll_event); |
805 return delegate_->OnMouseEvent(wheel_event); | 805 return delegate_->OnMouseEvent(wheel_event); |
806 } | 806 } |
807 MouseEvent mouse_event(event); | 807 MouseEvent mouse_event(event); |
808 if (tooltip_manager_.get()) | 808 if (tooltip_manager_.get()) |
809 tooltip_manager_->UpdateTooltip(); | 809 tooltip_manager_->UpdateTooltip(); |
810 return delegate_->OnMouseEvent(mouse_event); | 810 return delegate_->OnMouseEvent(mouse_event); |
811 } | 811 } |
812 | 812 |
813 ui::TouchStatus NativeWidgetAura::OnTouchEvent(ui::TouchEventImpl* 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::GestureEventImpl* 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); |
(...skipping 223 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 |