| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "mojo/application/application_runner_chromium.h" | 7 #include "mojo/application/application_runner_chromium.h" |
| 8 #include "mojo/common/weak_binding_set.h" | 8 #include "mojo/common/binding_set.h" |
| 9 #include "mojo/gpu/gl_texture.h" | 9 #include "mojo/gpu/gl_texture.h" |
| 10 #include "mojo/gpu/texture_cache.h" | 10 #include "mojo/gpu/texture_cache.h" |
| 11 #include "mojo/gpu/texture_uploader.h" | 11 #include "mojo/gpu/texture_uploader.h" |
| 12 #include "mojo/public/c/system/main.h" | 12 #include "mojo/public/c/system/main.h" |
| 13 #include "mojo/public/cpp/application/application_delegate.h" | 13 #include "mojo/public/cpp/application/application_delegate.h" |
| 14 #include "mojo/public/cpp/application/application_impl.h" | 14 #include "mojo/public/cpp/application/application_impl.h" |
| 15 #include "mojo/public/cpp/application/connect.h" | 15 #include "mojo/public/cpp/application/connect.h" |
| 16 #include "mojo/services/nfc/public/interfaces/nfc.mojom.h" | 16 #include "mojo/services/nfc/public/interfaces/nfc.mojom.h" |
| 17 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" | 17 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" |
| 18 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" | 18 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 nfc::NfcPtr nfc_; | 303 nfc::NfcPtr nfc_; |
| 304 nfc::NfcTransmissionPtr nfc_transmission_; | 304 nfc::NfcTransmissionPtr nfc_transmission_; |
| 305 mojo::Binding<nfc::NfcReceiver> nfc_receiver_binding_; | 305 mojo::Binding<nfc::NfcReceiver> nfc_receiver_binding_; |
| 306 std::deque<CircleData> circles_; | 306 std::deque<CircleData> circles_; |
| 307 uint32_t surface_id_; | 307 uint32_t surface_id_; |
| 308 base::WeakPtr<mojo::GLContext> gl_context_; | 308 base::WeakPtr<mojo::GLContext> gl_context_; |
| 309 mojo::SurfacePtr surface_; | 309 mojo::SurfacePtr surface_; |
| 310 scoped_ptr<mojo::TextureCache> texture_cache_; | 310 scoped_ptr<mojo::TextureCache> texture_cache_; |
| 311 scoped_ptr<ViewTextureUploader> texture_uploader_; | 311 scoped_ptr<ViewTextureUploader> texture_uploader_; |
| 312 bool transmission_pending_; | 312 bool transmission_pending_; |
| 313 mojo::WeakBindingSet<nfc::NfcReceiver> nfc_receiver_bindings_; | 313 mojo::BindingSet<nfc::NfcReceiver> nfc_receiver_bindings_; |
| 314 | 314 |
| 315 DISALLOW_COPY_AND_ASSIGN(NfcSenderDelegate); | 315 DISALLOW_COPY_AND_ASSIGN(NfcSenderDelegate); |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 } // namespace examples | 318 } // namespace examples |
| 319 | 319 |
| 320 MojoResult MojoMain(MojoHandle application_request) { | 320 MojoResult MojoMain(MojoHandle application_request) { |
| 321 mojo::ApplicationRunnerChromium runner(new examples::NfcSenderDelegate); | 321 mojo::ApplicationRunnerChromium runner(new examples::NfcSenderDelegate); |
| 322 return runner.Run(application_request); | 322 return runner.Run(application_request); |
| 323 } | 323 } |
| OLD | NEW |