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 14 matching lines...) Expand all Loading... |
25 // Returns a TestWindowDelegate that delete itself when | 25 // Returns a TestWindowDelegate that delete itself when |
26 // the associated window is destroyed. | 26 // the associated window is destroyed. |
27 static TestWindowDelegate* CreateSelfDestroyingDelegate(); | 27 static TestWindowDelegate* CreateSelfDestroyingDelegate(); |
28 | 28 |
29 void set_window_component(int window_component) { | 29 void set_window_component(int window_component) { |
30 window_component_ = window_component; | 30 window_component_ = window_component; |
31 } | 31 } |
32 | 32 |
33 // Overridden from WindowDelegate: | 33 // Overridden from WindowDelegate: |
34 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 34 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 35 virtual gfx::Size GetMaximumSize() const OVERRIDE; |
35 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 36 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
36 const gfx::Rect& new_bounds) OVERRIDE; | 37 const gfx::Rect& new_bounds) OVERRIDE; |
37 virtual void OnFocus(Window* old_focused_window) OVERRIDE; | 38 virtual void OnFocus(Window* old_focused_window) OVERRIDE; |
38 virtual void OnBlur() OVERRIDE; | 39 virtual void OnBlur() OVERRIDE; |
39 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 40 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
40 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 41 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
41 virtual bool ShouldDescendIntoChildForEventHandling( | 42 virtual bool ShouldDescendIntoChildForEventHandling( |
42 Window* child, | 43 Window* child, |
43 const gfx::Point& location) OVERRIDE; | 44 const gfx::Point& location) OVERRIDE; |
44 virtual bool CanFocus() OVERRIDE; | 45 virtual bool CanFocus() OVERRIDE; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 int key_press_count_; | 132 int key_press_count_; |
132 int key_release_count_; | 133 int key_release_count_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); | 135 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace test | 138 } // namespace test |
138 } // namespace aura | 139 } // namespace aura |
139 | 140 |
140 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ | 141 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ |
OLD | NEW |