forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fold NativeViewport application into ViewManager application.
R=sky@chromium.org BUG= Review URL: https://codereview.chromium.org/1123153006 Cr-Commit-Position: refs/heads/master@{#331010}
- Loading branch information
ben
authored and
Commit bot
committed
May 21, 2015
1 parent
fe9a066
commit 5fdef63
Showing
20 changed files
with
210 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "components/view_manager/android_loader.h" | ||
|
||
#include "components/view_manager/view_manager_app.h" | ||
#include "mojo/application/public/cpp/application_impl.h" | ||
|
||
namespace view_manager { | ||
|
||
AndroidLoader::AndroidLoader() {} | ||
AndroidLoader::~AndroidLoader() {} | ||
|
||
void AndroidLoader::Load( | ||
const GURL& url, | ||
mojo::InterfaceRequest<mojo::Application> application_request) { | ||
DCHECK(application_request.is_pending()); | ||
app_.reset(new mojo::ApplicationImpl(new ViewManagerApp, | ||
application_request.Pass())); | ||
} | ||
|
||
} // namespace view_manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_VIEW_MANAGER_ANDROID_LOADER_H_ | ||
#define COMPONENTS_VIEW_MANAGER_ANDROID_LOADER_H_ | ||
|
||
#include "mojo/shell/application_loader.h" | ||
|
||
namespace mojo { | ||
class ApplicationImpl; | ||
} | ||
|
||
namespace view_manager { | ||
|
||
class AndroidLoader : public mojo::shell::ApplicationLoader { | ||
public: | ||
AndroidLoader(); | ||
~AndroidLoader(); | ||
|
||
private: | ||
// Overridden from mojo::shell::ApplicationLoader: | ||
void Load( | ||
const GURL& url, | ||
mojo::InterfaceRequest<mojo::Application> application_request) override; | ||
|
||
scoped_ptr<mojo::ApplicationImpl> app_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(AndroidLoader); | ||
}; | ||
|
||
} // namespace view_manager | ||
|
||
#endif // COMPONENTS_VIEW_MANAGER_ANDROID_LOADER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.