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 #include "components/app_modal_dialogs/views/javascript_app_modal_dialog_views.h
" | 5 #include "components/app_modal/views/javascript_app_modal_dialog_views.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "components/app_modal_dialogs/javascript_app_modal_dialog.h" | 8 #include "components/app_modal/javascript_app_modal_dialog.h" |
9 #include "components/constrained_window/constrained_window_views.h" | 9 #include "components/constrained_window/constrained_window_views.h" |
10 #include "grit/components_strings.h" | 10 #include "grit/components_strings.h" |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 #include "ui/events/keycodes/keyboard_codes.h" | 12 #include "ui/events/keycodes/keyboard_codes.h" |
13 #include "ui/views/controls/message_box_view.h" | 13 #include "ui/views/controls/message_box_view.h" |
14 #include "ui/views/controls/textfield/textfield.h" | 14 #include "ui/views/controls/textfield/textfield.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
16 #include "ui/views/window/dialog_client_view.h" | 16 #include "ui/views/window/dialog_client_view.h" |
17 | 17 |
18 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 views::View* JavaScriptAppModalDialogViews::GetContentsView() { | 145 views::View* JavaScriptAppModalDialogViews::GetContentsView() { |
146 return message_box_view_; | 146 return message_box_view_; |
147 } | 147 } |
148 | 148 |
149 views::View* JavaScriptAppModalDialogViews::GetInitiallyFocusedView() { | 149 views::View* JavaScriptAppModalDialogViews::GetInitiallyFocusedView() { |
150 if (message_box_view_->text_box()) | 150 if (message_box_view_->text_box()) |
151 return message_box_view_->text_box(); | 151 return message_box_view_->text_box(); |
152 return views::DialogDelegate::GetInitiallyFocusedView(); | 152 return views::DialogDelegate::GetInitiallyFocusedView(); |
153 } | 153 } |
OLD | NEW |