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_impl.h" | 5 #include "mandoline/ui/omnibox/omnibox_impl.h" |
6 | 6 |
7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "components/view_manager/public/cpp/view_manager_client_factory.h" | 8 #include "components/view_manager/public/cpp/view_manager_client_factory.h" |
9 #include "mandoline/ui/aura/aura_init.h" | 9 #include "mandoline/ui/aura/aura_init.h" |
10 #include "mandoline/ui/aura/native_widget_view_manager.h" | 10 #include "mandoline/ui/aura/native_widget_view_manager.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 //////////////////////////////////////////////////////////////////////////////// | 129 //////////////////////////////////////////////////////////////////////////////// |
130 // OmniboxImpl, Omnibox implementation: | 130 // OmniboxImpl, Omnibox implementation: |
131 | 131 |
132 void OmniboxImpl::SetClient(OmniboxClientPtr client) { | 132 void OmniboxImpl::SetClient(OmniboxClientPtr client) { |
133 client_ = client.Pass(); | 133 client_ = client.Pass(); |
134 } | 134 } |
135 | 135 |
136 void OmniboxImpl::ShowForURL(const mojo::String& url) { | 136 void OmniboxImpl::ShowForURL(const mojo::String& url) { |
137 url_ = url; | 137 url_ = url; |
138 | 138 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
139 view_embedder_->Embed("mojo:omnibox", nullptr, nullptr); | 139 request->url = mojo::String::From("mojo:omnibox"); |
| 140 view_embedder_->Embed(request.Pass(), nullptr, nullptr); |
140 } | 141 } |
141 | 142 |
142 } // namespace mandoline | 143 } // namespace mandoline |
OLD | NEW |