| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/aura/test/test_window_delegate.h" | 5 #include "ui/aura/test/test_window_delegate.h" |
| 6 | 6 |
| 7 #include "third_party/skia/include/core/SkCanvas.h" | 7 #include "third_party/skia/include/core/SkCanvas.h" |
| 8 #include "ui/aura/event.h" | 8 #include "ui/aura/event.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { | 51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { |
| 52 return false; | 52 return false; |
| 53 } | 53 } |
| 54 | 54 |
| 55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { | 55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { |
| 56 return ui::TOUCH_STATUS_UNKNOWN; | 56 return ui::TOUCH_STATUS_UNKNOWN; |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool TestWindowDelegate::CanFocus() { |
| 60 return true; |
| 61 } |
| 62 |
| 59 bool TestWindowDelegate::ShouldActivate(Event* event) { | 63 bool TestWindowDelegate::ShouldActivate(Event* event) { |
| 60 return true; | 64 return true; |
| 61 } | 65 } |
| 62 | 66 |
| 63 void TestWindowDelegate::OnActivated() { | 67 void TestWindowDelegate::OnActivated() { |
| 64 } | 68 } |
| 65 | 69 |
| 66 void TestWindowDelegate::OnLostActive() { | 70 void TestWindowDelegate::OnLostActive() { |
| 67 } | 71 } |
| 68 | 72 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 130 } |
| 127 void ActivateWindowDelegate::OnActivated() { | 131 void ActivateWindowDelegate::OnActivated() { |
| 128 activated_count_++; | 132 activated_count_++; |
| 129 } | 133 } |
| 130 void ActivateWindowDelegate::OnLostActive() { | 134 void ActivateWindowDelegate::OnLostActive() { |
| 131 lost_active_count_++; | 135 lost_active_count_++; |
| 132 } | 136 } |
| 133 | 137 |
| 134 } // namespace test | 138 } // namespace test |
| 135 } // namespace aura | 139 } // namespace aura |
| OLD | NEW |