| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 virtual ~TestWindowDelegate(); | 21 virtual ~TestWindowDelegate(); |
| 22 | 22 |
| 23 void set_window_component(int window_component) { | 23 void set_window_component(int window_component) { |
| 24 window_component_ = window_component; | 24 window_component_ = window_component; |
| 25 } | 25 } |
| 26 | 26 |
| 27 // Overridden from WindowDelegate: | 27 // Overridden from WindowDelegate: |
| 28 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 28 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 29 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 29 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 30 const gfx::Rect& new_bounds) OVERRIDE; | 30 const gfx::Rect& new_bounds) OVERRIDE; |
| 31 virtual void OnFocus() OVERRIDE; | 31 virtual void OnFocus(Window* old_focused_window) OVERRIDE; |
| 32 virtual void OnBlur() OVERRIDE; | 32 virtual void OnBlur() OVERRIDE; |
| 33 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; | 33 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; |
| 34 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 34 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 35 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 35 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 36 virtual bool ShouldDescendIntoChildForEventHandling( | 36 virtual bool ShouldDescendIntoChildForEventHandling( |
| 37 Window* child, | 37 Window* child, |
| 38 const gfx::Point& location) OVERRIDE; | 38 const gfx::Point& location) OVERRIDE; |
| 39 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; | 39 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; |
| 40 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; | 40 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; |
| 41 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE; | 41 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 private: | 88 private: |
| 89 gfx::Rect mask_rect_; | 89 gfx::Rect mask_rect_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(MaskedWindowDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(MaskedWindowDelegate); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace test | 94 } // namespace test |
| 95 } // namespace aura | 95 } // namespace aura |
| 96 | 96 |
| 97 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 97 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
| OLD | NEW |