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

Unified Diff: mandoline/tab/frame_apptest.cc

Issue 1314953002: Rename ViewManagerService,ViewManagerClient -> ViewTree,ViewTreeClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mandoline/tab/frame.cc ('k') | mandoline/tab/frame_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/tab/frame_apptest.cc
diff --git a/mandoline/tab/frame_apptest.cc b/mandoline/tab/frame_apptest.cc
index 364cf97224b12cb28c3fe03c46d9a061c9751b4b..17104432a9fdbcda63fec44b4cbe16ae55ddacc8 100644
--- a/mandoline/tab/frame_apptest.cc
+++ b/mandoline/tab/frame_apptest.cc
@@ -10,7 +10,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/test_timeouts.h"
-#include "components/view_manager/public/cpp/lib/view_manager_client_impl.h"
+#include "components/view_manager/public/cpp/view_manager.h"
#include "components/view_manager/public/cpp/view_manager_delegate.h"
#include "components/view_manager/public/cpp/view_manager_init.h"
#include "components/view_manager/public/cpp/view_observer.h"
@@ -66,16 +66,16 @@ void QuitRunLoop() {
class FrameTest : public mojo::test::ApplicationTestBase,
public mojo::ApplicationDelegate,
public mojo::ViewManagerDelegate,
- public mojo::InterfaceFactory<mojo::ViewManagerClient> {
+ public mojo::InterfaceFactory<mojo::ViewTreeClient> {
public:
- FrameTest() : most_recent_view_manager_(nullptr), window_manager_(nullptr) {}
+ FrameTest() : most_recent_view_tree_(nullptr), window_manager_(nullptr) {}
- ViewManager* most_recent_view_manager() { return most_recent_view_manager_; }
+ ViewManager* most_recent_view_tree() { return most_recent_view_tree_; }
// ApplicationDelegate implementation.
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
- connection->AddService<mojo::ViewManagerClient>(this);
+ connection->AddService<mojo::ViewTreeClient>(this);
return true;
}
@@ -86,7 +86,7 @@ class FrameTest : public mojo::test::ApplicationTestBase,
// Overridden from ViewManagerDelegate:
void OnEmbed(View* root) override {
- most_recent_view_manager_ = root->view_manager();
+ most_recent_view_tree_ = root->view_manager();
QuitRunLoop();
}
void OnViewManagerDestroyed(ViewManager* view_manager) override {}
@@ -99,7 +99,7 @@ class FrameTest : public mojo::test::ApplicationTestBase,
view_manager_init_.reset(
new mojo::ViewManagerInit(application_impl(), this, nullptr));
ASSERT_TRUE(DoRunLoopWithTimeout());
- std::swap(window_manager_, most_recent_view_manager_);
+ std::swap(window_manager_, most_recent_view_tree_);
}
// Overridden from testing::Test:
@@ -108,17 +108,17 @@ class FrameTest : public mojo::test::ApplicationTestBase,
ApplicationTestBase::TearDown();
}
- // Overridden from mojo::InterfaceFactory<mojo::ViewManagerClient>:
+ // Overridden from mojo::InterfaceFactory<mojo::ViewTreeClient>:
void Create(
mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::ViewManagerClient> request) override {
+ mojo::InterfaceRequest<mojo::ViewTreeClient> request) override {
mojo::ViewManager::Create(this, request.Pass());
}
scoped_ptr<mojo::ViewManagerInit> view_manager_init_;
// Used to receive the most recent view manager loaded by an embed action.
- ViewManager* most_recent_view_manager_;
+ ViewManager* most_recent_view_tree_;
// The View Manager connection held by the window manager (app running at the
// root view).
ViewManager* window_manager_;
« no previous file with comments | « mandoline/tab/frame.cc ('k') | mandoline/tab/frame_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698