| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 5 #include <string> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "mojo/services/public/cpp/view_manager/types.h" | 24 #include "mojo/services/public/cpp/view_manager/types.h" |
| 25 #include "mojo/services/public/cpp/view_manager/util.h" | 25 #include "mojo/services/public/cpp/view_manager/util.h" |
| 26 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 26 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 27 #include "mojo/services/view_manager/ids.h" | 27 #include "mojo/services/view_manager/ids.h" |
| 28 #include "mojo/services/view_manager/test_change_tracker.h" | 28 #include "mojo/services/view_manager/test_change_tracker.h" |
| 29 #include "mojo/shell/shell_test_helper.h" | 29 #include "mojo/shell/shell_test_helper.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 #include "ui/gfx/geometry/rect.h" | 31 #include "ui/gfx/geometry/rect.h" |
| 32 | 32 |
| 33 namespace mojo { | 33 namespace mojo { |
| 34 namespace view_manager { | |
| 35 namespace service { | 34 namespace service { |
| 36 | 35 |
| 37 namespace { | 36 namespace { |
| 38 | 37 |
| 39 const char kTestServiceURL[] = "mojo:test_url"; | 38 const char kTestServiceURL[] = "mojo:test_url"; |
| 40 const char kTestServiceURL2[] = "mojo:test_url2"; | 39 const char kTestServiceURL2[] = "mojo:test_url2"; |
| 41 | 40 |
| 42 // ViewManagerProxy is a proxy to an ViewManagerService. It handles invoking | 41 // ViewManagerProxy is a proxy to an ViewManagerService. It handles invoking |
| 43 // ViewManagerService functions on the right thread in a synchronous manner | 42 // ViewManagerService functions on the right thread in a synchronous manner |
| 44 // (each ViewManagerService cover function blocks until the response from the | 43 // (each ViewManagerService cover function blocks until the response from the |
| (...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1539 // TODO(sky): need to better track changes to initial connection. For example, | 1538 // TODO(sky): need to better track changes to initial connection. For example, |
| 1540 // that SetBounsdNodes/AddNode and the like don't result in messages to the | 1539 // that SetBounsdNodes/AddNode and the like don't result in messages to the |
| 1541 // originating connection. | 1540 // originating connection. |
| 1542 | 1541 |
| 1543 // TODO(beng): Add tests for focus: | 1542 // TODO(beng): Add tests for focus: |
| 1544 // - focus between two nodes known to a connection | 1543 // - focus between two nodes known to a connection |
| 1545 // - focus between nodes unknown to one of the connections. | 1544 // - focus between nodes unknown to one of the connections. |
| 1546 // - focus between nodes unknown to either connection. | 1545 // - focus between nodes unknown to either connection. |
| 1547 | 1546 |
| 1548 } // namespace service | 1547 } // namespace service |
| 1549 } // namespace view_manager | |
| 1550 } // namespace mojo | 1548 } // namespace mojo |
| OLD | NEW |