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

Side by Side Diff: mandoline/ui/omnibox/omnibox_application.cc

Issue 1459453003: mandoline: write this after lunch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TracingImpls to mus and mash, fix naming. Created 5 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
« no previous file with comments | « mandoline/ui/omnibox/omnibox_application.h ('k') | mash/wm/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « mandoline/ui/omnibox/omnibox_application.h ('k') | mash/wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698