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_WINDOW_DIALOG_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
7 | 7 |
| 8 #include "base/gtest_prod_util.h" |
8 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
9 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/focus/focus_manager.h" | 11 #include "ui/views/focus/focus_manager.h" |
11 #include "ui/views/window/client_view.h" | 12 #include "ui/views/window/client_view.h" |
12 | 13 |
13 namespace views { | 14 namespace views { |
14 | 15 |
15 class DialogDelegate; | 16 class DialogDelegate; |
16 class LabelButton; | 17 class LabelButton; |
17 class Widget; | 18 class Widget; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void ViewHierarchyChanged( | 62 void ViewHierarchyChanged( |
62 const ViewHierarchyChangedDetails& details) override; | 63 const ViewHierarchyChangedDetails& details) override; |
63 void NativeViewHierarchyChanged() override; | 64 void NativeViewHierarchyChanged() override; |
64 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 65 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
65 | 66 |
66 // ButtonListener implementation: | 67 // ButtonListener implementation: |
67 void ButtonPressed(Button* sender, const ui::Event& event) override; | 68 void ButtonPressed(Button* sender, const ui::Event& event) override; |
68 | 69 |
69 protected: | 70 protected: |
70 // For testing. | 71 // For testing. |
71 DialogClientView(View* contents_view); | 72 explicit DialogClientView(View* contents_view); |
72 | 73 |
73 // Returns the DialogDelegate for the window. Virtual for testing. | 74 // Returns the DialogDelegate for the window. Virtual for testing. |
74 virtual DialogDelegate* GetDialogDelegate() const; | 75 virtual DialogDelegate* GetDialogDelegate() const; |
75 | 76 |
76 // Create and add the extra view, if supplied by the delegate. | 77 // Create and add the extra view, if supplied by the delegate. |
77 void CreateExtraView(); | 78 void CreateExtraView(); |
78 | 79 |
79 // Creates and adds the footnote view, if supplied by the delegate. | 80 // Creates and adds the footnote view, if supplied by the delegate. |
80 void CreateFootnoteView(); | 81 void CreateFootnoteView(); |
81 | 82 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // http://crbug.com/71940). This is used to avoid notifying the delegate | 125 // http://crbug.com/71940). This is used to avoid notifying the delegate |
125 // twice, which can have bad consequences. | 126 // twice, which can have bad consequences. |
126 bool notified_delegate_; | 127 bool notified_delegate_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(DialogClientView); | 129 DISALLOW_COPY_AND_ASSIGN(DialogClientView); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace views | 132 } // namespace views |
132 | 133 |
133 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 134 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
OLD | NEW |