| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual void OnCaptureLost() OVERRIDE; | 54 virtual void OnCaptureLost() OVERRIDE; |
| 55 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 55 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 57 virtual void OnWindowDestroying() OVERRIDE; | 57 virtual void OnWindowDestroying() OVERRIDE; |
| 58 virtual void OnWindowDestroyed() OVERRIDE; | 58 virtual void OnWindowDestroyed() OVERRIDE; |
| 59 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 59 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
| 60 virtual bool HasHitTestMask() const OVERRIDE; | 60 virtual bool HasHitTestMask() const OVERRIDE; |
| 61 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 61 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 62 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; | 62 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
| 63 | 63 |
| 64 // Overridden from ui::EventHandler: | |
| 65 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | |
| 66 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | |
| 67 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | |
| 68 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | |
| 69 | |
| 70 private: | 64 private: |
| 71 int window_component_; | 65 int window_component_; |
| 72 bool delete_on_destroyed_; | 66 bool delete_on_destroyed_; |
| 73 gfx::Size minimum_size_; | 67 gfx::Size minimum_size_; |
| 74 gfx::Size maximum_size_; | 68 gfx::Size maximum_size_; |
| 75 | 69 |
| 76 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); |
| 77 }; | 71 }; |
| 78 | 72 |
| 79 // A simple WindowDelegate implementation for these tests. It owns itself | 73 // A simple WindowDelegate implementation for these tests. It owns itself |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 int key_press_count_; | 136 int key_press_count_; |
| 143 int key_release_count_; | 137 int key_release_count_; |
| 144 | 138 |
| 145 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); | 139 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); |
| 146 }; | 140 }; |
| 147 | 141 |
| 148 } // namespace test | 142 } // namespace test |
| 149 } // namespace aura | 143 } // namespace aura |
| 150 | 144 |
| 151 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 145 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
| OLD | NEW |