Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: components/app_modal/views/javascript_app_modal_dialog_views.cc

Issue 735473002: Rename app_modal_dialogs dir to app_modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/app_modal/views/javascript_app_modal_dialog_views.h ('k') | components/app_modal_dialogs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698