| 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_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ | 5 #ifndef UI_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ |
| 6 #define UI_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ | 6 #define UI_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ |
| 7 | 7 |
| 8 #include "ui/views/controls/button/button.h" | 8 #include "ui/views/controls/button/button.h" |
| 9 #include "ui/views/widget/widget_delegate.h" | 9 #include "ui/views/widget/widget_delegate.h" |
| 10 #include "ui/views/widget/widget_observer.h" | 10 #include "ui/views/widget/widget_observer.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class NativeTextButton; | 13 class NativeTextButton; |
| 14 class NativeViewHost; | 14 class NativeViewHost; |
| 15 class Textfield; | 15 class Textfield; |
| 16 class View; | 16 class View; |
| 17 class Widget; | 17 class Widget; |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 void CreateChildModalParent(); | 20 void CreateChildModalParent(gfx::NativeView context); |
| 21 | 21 |
| 22 class ChildModalParent : public WidgetDelegateView, | 22 class ChildModalParent : public WidgetDelegateView, |
| 23 public ButtonListener, | 23 public ButtonListener, |
| 24 public WidgetObserver { | 24 public WidgetObserver { |
| 25 public: | 25 public: |
| 26 ChildModalParent(); | 26 ChildModalParent(gfx::NativeView context); |
| 27 virtual ~ChildModalParent(); | 27 virtual ~ChildModalParent(); |
| 28 | 28 |
| 29 void ShowChild(); | 29 void ShowChild(); |
| 30 gfx::NativeWindow GetModalParent() const; | 30 gfx::NativeWindow GetModalParent() const; |
| 31 gfx::NativeWindow GetChild() const; | 31 gfx::NativeWindow GetChild() const; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 Widget* CreateChild(); | 34 Widget* CreateChild(); |
| 35 | 35 |
| 36 // Overridden from WidgetDelegate: | 36 // Overridden from WidgetDelegate: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 67 // The child window. | 67 // The child window. |
| 68 Widget* child_; | 68 Widget* child_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(ChildModalParent); | 70 DISALLOW_COPY_AND_ASSIGN(ChildModalParent); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace test | 73 } // namespace test |
| 74 } // namespace views | 74 } // namespace views |
| 75 | 75 |
| 76 #endif // UI_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ | 76 #endif // UI_VIEWS_TEST_CHILD_WMODAL_WINDOW_H_ |
| OLD | NEW |