| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |