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_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 5 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void OnWindowDestroying() OVERRIDE; | 47 virtual void OnWindowDestroying() OVERRIDE; |
48 virtual void OnWindowDestroyed() OVERRIDE; | 48 virtual void OnWindowDestroyed() OVERRIDE; |
49 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 49 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
50 virtual bool HasHitTestMask() const OVERRIDE; | 50 virtual bool HasHitTestMask() const OVERRIDE; |
51 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 51 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
52 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; | 52 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
53 | 53 |
54 // Overridden from ui::EventHandler: | 54 // Overridden from ui::EventHandler: |
55 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 55 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
56 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 56 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
57 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 57 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
58 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 58 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
59 | 59 |
60 private: | 60 private: |
61 int window_component_; | 61 int window_component_; |
62 bool delete_on_destroyed_; | 62 bool delete_on_destroyed_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); |
65 }; | 65 }; |
66 | 66 |
67 // A simple WindowDelegate implementation for these tests. It owns itself | 67 // A simple WindowDelegate implementation for these tests. It owns itself |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 int key_press_count_; | 130 int key_press_count_; |
131 int key_release_count_; | 131 int key_release_count_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); | 133 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace test | 136 } // namespace test |
137 } // namespace aura | 137 } // namespace aura |
138 | 138 |
139 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 139 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
OLD | NEW |