OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mandoline/ui/omnibox/omnibox_application.h" | 5 #include "mandoline/ui/omnibox/omnibox_application.h" |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/mus/public/cpp/view_tree_connection.h" |
| 10 #include "components/mus/public/cpp/view_tree_delegate.h" |
9 #include "components/url_formatter/url_fixer.h" | 11 #include "components/url_formatter/url_fixer.h" |
10 #include "components/view_manager/public/cpp/view_tree_connection.h" | |
11 #include "components/view_manager/public/cpp/view_tree_delegate.h" | |
12 #include "mandoline/ui/aura/aura_init.h" | 12 #include "mandoline/ui/aura/aura_init.h" |
13 #include "mandoline/ui/aura/native_widget_view_manager.h" | 13 #include "mandoline/ui/aura/native_widget_view_manager.h" |
14 #include "mandoline/ui/desktop_ui/public/interfaces/view_embedder.mojom.h" | 14 #include "mandoline/ui/desktop_ui/public/interfaces/view_embedder.mojom.h" |
15 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/application/public/cpp/application_impl.h" |
16 #include "mojo/common/common_type_converters.h" | 16 #include "mojo/common/common_type_converters.h" |
17 #include "mojo/converters/geometry/geometry_type_converters.h" | 17 #include "mojo/converters/geometry/geometry_type_converters.h" |
18 #include "ui/views/background.h" | 18 #include "ui/views/background.h" |
19 #include "ui/views/controls/textfield/textfield.h" | 19 #include "ui/views/controls/textfield/textfield.h" |
20 #include "ui/views/controls/textfield/textfield_controller.h" | 20 #include "ui/views/controls/textfield/textfield_controller.h" |
21 #include "ui/views/layout/layout_manager.h" | 21 #include "ui/views/layout/layout_manager.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 edit_->SelectAll(false); | 216 edit_->SelectAll(false); |
217 edit_->RequestFocus(); | 217 edit_->RequestFocus(); |
218 } | 218 } |
219 | 219 |
220 void OmniboxImpl::HideWindow() { | 220 void OmniboxImpl::HideWindow() { |
221 DCHECK(root_); | 221 DCHECK(root_); |
222 root_->SetVisible(false); | 222 root_->SetVisible(false); |
223 } | 223 } |
224 | 224 |
225 } // namespace mandoline | 225 } // namespace mandoline |
OLD | NEW |