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 #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" |
11 #include "ui/aura/window_delegate.h" | 11 #include "ui/aura/window_delegate.h" |
12 | 12 |
13 namespace aura { | 13 namespace aura { |
14 namespace test { | 14 namespace test { |
15 | 15 |
16 // WindowDelegate implementation with all methods stubbed out. | 16 // WindowDelegate implementation with all methods stubbed out. |
17 class TestWindowDelegate : public WindowDelegate { | 17 class TestWindowDelegate : public WindowDelegate { |
18 public: | 18 public: |
19 TestWindowDelegate(); | 19 TestWindowDelegate(); |
20 virtual ~TestWindowDelegate(); | 20 virtual ~TestWindowDelegate(); |
21 | 21 |
22 // Overridden from WindowDelegate: | 22 // Overridden from WindowDelegate: |
23 virtual void OnBoundsChanging(gfx::Rect* new_bounds) OVERRIDE; | 23 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
24 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 24 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
25 const gfx::Rect& new_bounds) OVERRIDE; | 25 const gfx::Rect& new_bounds) OVERRIDE; |
26 virtual void OnFocus() OVERRIDE; | 26 virtual void OnFocus() OVERRIDE; |
27 virtual void OnBlur() OVERRIDE; | 27 virtual void OnBlur() OVERRIDE; |
28 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; | 28 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; |
29 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 29 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
30 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 30 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
31 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; | 31 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; |
32 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; | 32 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; |
33 virtual bool ShouldActivate(Event* event) OVERRIDE; | 33 virtual bool ShouldActivate(Event* event) OVERRIDE; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int lost_active_count_; | 88 int lost_active_count_; |
89 int should_activate_count_; | 89 int should_activate_count_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(ActivateWindowDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(ActivateWindowDelegate); |
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 |