| 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 18 matching lines...) Expand all Loading... |
| 29 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 29 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 30 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 30 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 31 const gfx::Rect& new_bounds) OVERRIDE; | 31 const gfx::Rect& new_bounds) OVERRIDE; |
| 32 virtual void OnFocus(Window* old_focused_window) OVERRIDE; | 32 virtual void OnFocus(Window* old_focused_window) OVERRIDE; |
| 33 virtual void OnBlur() OVERRIDE; | 33 virtual void OnBlur() OVERRIDE; |
| 34 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 34 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 35 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 35 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 36 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 36 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 37 virtual bool ShouldDescendIntoChildForEventHandling( | 37 virtual bool ShouldDescendIntoChildForEventHandling( |
| 38 Window* child, | 38 Window* child, |
| 39 const gfx::Point& location) OVERRIDE; | 39 const gfx::Point& event_location, |
| 40 ui::EventType event_type) OVERRIDE; |
| 40 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 41 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 41 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 42 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 42 virtual ui::GestureStatus OnGestureEvent( | 43 virtual ui::GestureStatus OnGestureEvent( |
| 43 ui::GestureEvent* event) OVERRIDE; | 44 ui::GestureEvent* event) OVERRIDE; |
| 44 virtual bool CanFocus() OVERRIDE; | 45 virtual bool CanFocus() OVERRIDE; |
| 45 virtual void OnCaptureLost() OVERRIDE; | 46 virtual void OnCaptureLost() OVERRIDE; |
| 46 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 47 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 47 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 48 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 48 virtual void OnWindowDestroying() OVERRIDE; | 49 virtual void OnWindowDestroying() OVERRIDE; |
| 49 virtual void OnWindowDestroyed() OVERRIDE; | 50 virtual void OnWindowDestroyed() OVERRIDE; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 int key_press_count_; | 124 int key_press_count_; |
| 124 int key_release_count_; | 125 int key_release_count_; |
| 125 | 126 |
| 126 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); | 127 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace test | 130 } // namespace test |
| 130 } // namespace aura | 131 } // namespace aura |
| 131 | 132 |
| 132 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 133 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
| OLD | NEW |