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 "ui/base/ui_base_types.h" | 8 #include "ui/base/ui_base_types.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/focus/focus_manager.h" | 10 #include "ui/views/focus/focus_manager.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual DialogClientView* AsDialogClientView() OVERRIDE; | 50 virtual DialogClientView* AsDialogClientView() OVERRIDE; |
51 virtual const DialogClientView* AsDialogClientView() const OVERRIDE; | 51 virtual const DialogClientView* AsDialogClientView() const OVERRIDE; |
52 | 52 |
53 // FocusChangeListener implementation: | 53 // FocusChangeListener implementation: |
54 virtual void OnWillChangeFocus(View* focused_before, | 54 virtual void OnWillChangeFocus(View* focused_before, |
55 View* focused_now) OVERRIDE; | 55 View* focused_now) OVERRIDE; |
56 virtual void OnDidChangeFocus(View* focused_before, | 56 virtual void OnDidChangeFocus(View* focused_before, |
57 View* focused_now) OVERRIDE; | 57 View* focused_now) OVERRIDE; |
58 | 58 |
59 // View implementation: | 59 // View implementation: |
60 virtual gfx::Size GetPreferredSize() OVERRIDE; | 60 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
61 virtual void Layout() OVERRIDE; | 61 virtual void Layout() OVERRIDE; |
62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
63 virtual void ViewHierarchyChanged( | 63 virtual void ViewHierarchyChanged( |
64 const ViewHierarchyChangedDetails& details) OVERRIDE; | 64 const ViewHierarchyChangedDetails& details) OVERRIDE; |
65 virtual void NativeViewHierarchyChanged() OVERRIDE; | 65 virtual void NativeViewHierarchyChanged() OVERRIDE; |
66 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; | 66 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; |
67 | 67 |
68 // ButtonListener implementation: | 68 // ButtonListener implementation: |
69 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; | 69 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; |
70 | 70 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // http://crbug.com/71940). This is used to avoid notifying the delegate | 126 // http://crbug.com/71940). This is used to avoid notifying the delegate |
127 // twice, which can have bad consequences. | 127 // twice, which can have bad consequences. |
128 bool notified_delegate_; | 128 bool notified_delegate_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(DialogClientView); | 130 DISALLOW_COPY_AND_ASSIGN(DialogClientView); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace views | 133 } // namespace views |
134 | 134 |
135 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 135 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
OLD | NEW |