| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_TEST_CHILD_MODAL_WINDOW_H_ | 5 #ifndef ASH_TEST_CHILD_MODAL_WINDOW_H_ |
| 6 #define ASH_TEST_CHILD_MODAL_WINDOW_H_ | 6 #define ASH_TEST_CHILD_MODAL_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
| 10 #include "ui/views/widget/widget_delegate.h" | 10 #include "ui/views/widget/widget_delegate.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 ~ChildModalParent() override; | 31 ~ChildModalParent() override; |
| 32 | 32 |
| 33 void ShowChild(); | 33 void ShowChild(); |
| 34 gfx::NativeWindow GetModalParent() const; | 34 gfx::NativeWindow GetModalParent() const; |
| 35 gfx::NativeWindow GetChild() const; | 35 gfx::NativeWindow GetChild() const; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 views::Widget* CreateChild(); | 38 views::Widget* CreateChild(); |
| 39 | 39 |
| 40 // Overridden from views::WidgetDelegate: | 40 // Overridden from views::WidgetDelegate: |
| 41 View* GetContentsView() override; | |
| 42 base::string16 GetWindowTitle() const override; | 41 base::string16 GetWindowTitle() const override; |
| 43 bool CanResize() const override; | 42 bool CanResize() const override; |
| 44 void DeleteDelegate() override; | 43 void DeleteDelegate() override; |
| 45 | 44 |
| 46 // Overridden from views::View: | 45 // Overridden from views::View: |
| 47 void Layout() override; | 46 void Layout() override; |
| 48 void ViewHierarchyChanged( | 47 void ViewHierarchyChanged( |
| 49 const ViewHierarchyChangedDetails& details) override; | 48 const ViewHierarchyChangedDetails& details) override; |
| 50 | 49 |
| 51 // Overridden from ButtonListener: | 50 // Overridden from ButtonListener: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 71 // The child window. | 70 // The child window. |
| 72 views::Widget* child_; | 71 views::Widget* child_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(ChildModalParent); | 73 DISALLOW_COPY_AND_ASSIGN(ChildModalParent); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace test | 76 } // namespace test |
| 78 } // namespace ash | 77 } // namespace ash |
| 79 | 78 |
| 80 #endif // ASH_TEST_CHILD_MODAL_WINDOW_H_ | 79 #endif // ASH_TEST_CHILD_MODAL_WINDOW_H_ |
| OLD | NEW |