| 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 "ui/aura/client/activation_client.h" | 9 #include "ui/aura/client/activation_client.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 tooltip_manager_->UpdateTooltip(); | 666 tooltip_manager_->UpdateTooltip(); |
| 667 return delegate_->OnMouseEvent(mouse_event); | 667 return delegate_->OnMouseEvent(mouse_event); |
| 668 } | 668 } |
| 669 | 669 |
| 670 ui::TouchStatus NativeWidgetAura::OnTouchEvent(aura::TouchEvent* event) { | 670 ui::TouchStatus NativeWidgetAura::OnTouchEvent(aura::TouchEvent* event) { |
| 671 DCHECK(window_->IsVisible()); | 671 DCHECK(window_->IsVisible()); |
| 672 TouchEvent touch_event(event); | 672 TouchEvent touch_event(event); |
| 673 return delegate_->OnTouchEvent(touch_event); | 673 return delegate_->OnTouchEvent(touch_event); |
| 674 } | 674 } |
| 675 | 675 |
| 676 ui::GestureStatus NativeWidgetAura::OnGestureEvent(aura::GestureEvent* event) { |
| 677 DCHECK(window_->IsVisible()); |
| 678 // TODO(sad): |
| 679 return ui::GESTURE_STATUS_UNKNOWN; |
| 680 } |
| 681 |
| 676 bool NativeWidgetAura::CanFocus() { | 682 bool NativeWidgetAura::CanFocus() { |
| 677 return can_activate_; | 683 return can_activate_; |
| 678 } | 684 } |
| 679 | 685 |
| 680 void NativeWidgetAura::OnCaptureLost() { | 686 void NativeWidgetAura::OnCaptureLost() { |
| 681 delegate_->OnMouseCaptureLost(); | 687 delegate_->OnMouseCaptureLost(); |
| 682 } | 688 } |
| 683 | 689 |
| 684 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { | 690 void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
| 685 delegate_->OnNativeWidgetPaint(canvas); | 691 delegate_->OnNativeWidgetPaint(canvas); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 } | 862 } |
| 857 } | 863 } |
| 858 | 864 |
| 859 // static | 865 // static |
| 860 bool NativeWidgetPrivate::IsMouseButtonDown() { | 866 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 861 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); | 867 return aura::RootWindow::GetInstance()->IsMouseButtonDown(); |
| 862 } | 868 } |
| 863 | 869 |
| 864 } // namespace internal | 870 } // namespace internal |
| 865 } // namespace views | 871 } // namespace views |
| OLD | NEW |