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

Side by Side Diff: services/navigation/public/cpp/view.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months 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 | « services/navigation/public/cpp/BUILD.gn ('k') | services/navigation/public/interfaces/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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/navigation/public/cpp/view.h" 5 #include "services/navigation/public/cpp/view.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/mus/public/cpp/window.h"
9 #include "services/navigation/public/cpp/view_delegate.h" 8 #include "services/navigation/public/cpp/view_delegate.h"
10 #include "services/navigation/public/cpp/view_observer.h" 9 #include "services/navigation/public/cpp/view_observer.h"
10 #include "services/ui/public/cpp/window.h"
11 11
12 namespace navigation { 12 namespace navigation {
13 13
14 //////////////////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////////////////
15 // View, public: 15 // View, public:
16 16
17 View::View(mojom::ViewFactoryPtr factory) : binding_(this) { 17 View::View(mojom::ViewFactoryPtr factory) : binding_(this) {
18 mojom::ViewClientPtr client; 18 mojom::ViewClientPtr client;
19 binding_.Bind(GetProxy(&client)); 19 binding_.Bind(GetProxy(&client));
20 factory->CreateView(std::move(client), GetProxy(&view_)); 20 factory->CreateView(std::move(client), GetProxy(&view_));
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 if (from_front) { 174 if (from_front) {
175 auto it = navigation_list_.begin() + count; 175 auto it = navigation_list_.begin() + count;
176 navigation_list_.erase(navigation_list_.begin(), it); 176 navigation_list_.erase(navigation_list_.begin(), it);
177 } else { 177 } else {
178 auto it = navigation_list_.end() - count; 178 auto it = navigation_list_.end() - count;
179 navigation_list_.erase(it, navigation_list_.end()); 179 navigation_list_.erase(it, navigation_list_.end());
180 } 180 }
181 } 181 }
182 182
183 } // namespace navigation 183 } // namespace navigation
OLDNEW
« no previous file with comments | « services/navigation/public/cpp/BUILD.gn ('k') | services/navigation/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698