| 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_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "ui/base/accessibility/accessibility_types.h" | 10 #include "ui/base/accessibility/accessibility_types.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual bool Accept(); | 81 virtual bool Accept(); |
| 82 | 82 |
| 83 // Overridden from WidgetDelegate: | 83 // Overridden from WidgetDelegate: |
| 84 virtual View* GetInitiallyFocusedView() OVERRIDE; | 84 virtual View* GetInitiallyFocusedView() OVERRIDE; |
| 85 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; | 85 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; |
| 86 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; | 86 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; |
| 87 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; | 87 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; |
| 88 | 88 |
| 89 // Create a frame view using the new dialog style. | 89 // Create a frame view using the new dialog style. |
| 90 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget); | 90 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget); |
| 91 // The semi-transparent border and shadow of the new style frame view does not | |
| 92 // work on child windows under Views/Win32. This is a kludge to get a | |
| 93 // reasonable-looking opaque border for the dialog. Note that this does not | |
| 94 // support arrows. | |
| 95 // | |
| 96 // TODO(wittman): Remove once WinAura is in place. | |
| 97 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget, | |
| 98 bool force_opaque_border); | |
| 99 | 91 |
| 100 // Called when the window has been closed. | 92 // Called when the window has been closed. |
| 101 virtual void OnClose() {} | 93 virtual void OnClose() {} |
| 102 | 94 |
| 103 // A helper for accessing the DialogClientView object contained by this | 95 // A helper for accessing the DialogClientView object contained by this |
| 104 // delegate's Window. | 96 // delegate's Window. |
| 105 const DialogClientView* GetDialogClientView() const; | 97 const DialogClientView* GetDialogClientView() const; |
| 106 DialogClientView* GetDialogClientView(); | 98 DialogClientView* GetDialogClientView(); |
| 107 | 99 |
| 108 protected: | 100 protected: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 131 virtual const Widget* GetWidget() const OVERRIDE; | 123 virtual const Widget* GetWidget() const OVERRIDE; |
| 132 virtual View* GetContentsView() OVERRIDE; | 124 virtual View* GetContentsView() OVERRIDE; |
| 133 | 125 |
| 134 private: | 126 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); | 127 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); |
| 136 }; | 128 }; |
| 137 | 129 |
| 138 } // namespace views | 130 } // namespace views |
| 139 | 131 |
| 140 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 132 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| OLD | NEW |