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

Unified Diff: shell/android/native_viewport_application_loader.cc

Issue 1074963002: Add some |using mojo::...;|s to //shell .cc files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | shell/application_manager/application_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/native_viewport_application_loader.cc
diff --git a/shell/android/native_viewport_application_loader.cc b/shell/android/native_viewport_application_loader.cc
index 82d0ca26be48a84c1007d62294aab85d3313a6c5..295fce6cc1cc200c4769263929737108283a55c5 100644
--- a/shell/android/native_viewport_application_loader.cc
+++ b/shell/android/native_viewport_application_loader.cc
@@ -9,6 +9,9 @@
#include "services/native_viewport/native_viewport_impl.h"
#include "shell/android/keyboard_impl.h"
+using mojo::ApplicationConnection;
+using mojo::InterfaceRequest;
+
namespace shell {
NativeViewportApplicationLoader::NativeViewportApplicationLoader() {
@@ -19,13 +22,13 @@ NativeViewportApplicationLoader::~NativeViewportApplicationLoader() {
void NativeViewportApplicationLoader::Load(
const GURL& url,
- mojo::InterfaceRequest<mojo::Application> application_request) {
+ InterfaceRequest<mojo::Application> application_request) {
DCHECK(application_request.is_pending());
app_.reset(new mojo::ApplicationImpl(this, application_request.Pass()));
}
bool NativeViewportApplicationLoader::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
+ ApplicationConnection* connection) {
connection->AddService<mojo::NativeViewport>(this);
connection->AddService<mojo::Gpu>(this);
connection->AddService<mojo::Keyboard>(this);
@@ -33,22 +36,22 @@ bool NativeViewportApplicationLoader::ConfigureIncomingConnection(
}
void NativeViewportApplicationLoader::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::NativeViewport> request) {
+ ApplicationConnection* connection,
+ InterfaceRequest<mojo::NativeViewport> request) {
if (!gpu_state_)
gpu_state_ = new gles2::GpuState;
new native_viewport::NativeViewportImpl(false, gpu_state_, request.Pass());
}
void NativeViewportApplicationLoader::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::Keyboard> request) {
+ ApplicationConnection* connection,
+ InterfaceRequest<mojo::Keyboard> request) {
new KeyboardImpl(request.Pass());
}
void NativeViewportApplicationLoader::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::Gpu> request) {
+ ApplicationConnection* connection,
+ InterfaceRequest<mojo::Gpu> request) {
if (!gpu_state_)
gpu_state_ = new gles2::GpuState;
new gles2::GpuImpl(request.Pass(), gpu_state_);
« no previous file with comments | « no previous file | shell/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698