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/window.h" | 9 #include "components/mus/public/cpp/window.h" |
10 #include "components/mus/public/cpp/window_tree_connection.h" | 10 #include "components/mus/public/cpp/window_tree_connection.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // OmniboxApplication, public: | 75 // OmniboxApplication, public: |
76 | 76 |
77 OmniboxApplication::OmniboxApplication() : app_(nullptr) {} | 77 OmniboxApplication::OmniboxApplication() : app_(nullptr) {} |
78 OmniboxApplication::~OmniboxApplication() {} | 78 OmniboxApplication::~OmniboxApplication() {} |
79 | 79 |
80 //////////////////////////////////////////////////////////////////////////////// | 80 //////////////////////////////////////////////////////////////////////////////// |
81 // OmniboxApplication, mojo::ApplicationDelegate implementation: | 81 // OmniboxApplication, mojo::ApplicationDelegate implementation: |
82 | 82 |
83 void OmniboxApplication::Initialize(mojo::ApplicationImpl* app) { | 83 void OmniboxApplication::Initialize(mojo::ApplicationImpl* app) { |
84 app_ = app; | 84 app_ = app; |
| 85 tracing_.Initialize(app); |
85 } | 86 } |
86 | 87 |
87 bool OmniboxApplication::ConfigureIncomingConnection( | 88 bool OmniboxApplication::ConfigureIncomingConnection( |
88 mojo::ApplicationConnection* connection) { | 89 mojo::ApplicationConnection* connection) { |
89 connection->AddService<Omnibox>(this); | 90 connection->AddService<Omnibox>(this); |
90 return true; | 91 return true; |
91 } | 92 } |
92 | 93 |
93 //////////////////////////////////////////////////////////////////////////////// | 94 //////////////////////////////////////////////////////////////////////////////// |
94 // OmniboxApplication, mojo::InterfaceFactory<Omnibox> implementation: | 95 // OmniboxApplication, mojo::InterfaceFactory<Omnibox> implementation: |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 edit_->SelectAll(false); | 223 edit_->SelectAll(false); |
223 edit_->RequestFocus(); | 224 edit_->RequestFocus(); |
224 } | 225 } |
225 | 226 |
226 void OmniboxImpl::HideWindow() { | 227 void OmniboxImpl::HideWindow() { |
227 DCHECK(root_); | 228 DCHECK(root_); |
228 root_->SetVisible(false); | 229 root_->SetVisible(false); |
229 } | 230 } |
230 | 231 |
231 } // namespace mandoline | 232 } // namespace mandoline |
OLD | NEW |