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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "services/navigation/public/cpp/view_delegate.h" | 10 #include "services/navigation/public/cpp/view_delegate.h" |
10 #include "services/navigation/public/cpp/view_observer.h" | 11 #include "services/navigation/public/cpp/view_observer.h" |
11 #include "ui/aura/mus/window_port_mus.h" | 12 #include "ui/aura/mus/window_port_mus.h" |
12 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
13 | 14 |
14 namespace navigation { | 15 namespace navigation { |
15 namespace { | 16 namespace { |
16 | 17 |
17 // Callback with result of Embed(). | 18 // Callback with result of Embed(). |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 if (from_front) { | 184 if (from_front) { |
184 auto it = navigation_list_.begin() + count; | 185 auto it = navigation_list_.begin() + count; |
185 navigation_list_.erase(navigation_list_.begin(), it); | 186 navigation_list_.erase(navigation_list_.begin(), it); |
186 } else { | 187 } else { |
187 auto it = navigation_list_.end() - count; | 188 auto it = navigation_list_.end() - count; |
188 navigation_list_.erase(it, navigation_list_.end()); | 189 navigation_list_.erase(it, navigation_list_.end()); |
189 } | 190 } |
190 } | 191 } |
191 | 192 |
192 } // namespace navigation | 193 } // namespace navigation |
OLD | NEW |