| 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 #ifndef SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ | 5 #ifndef SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ |
| 6 #define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ | 6 #define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "mojo/application/application_runner_chromium.h" | 14 #include "mojo/application/application_runner_chromium.h" |
| 15 #include "mojo/common/tracing_impl.h" | 15 #include "mojo/common/tracing_impl.h" |
| 16 #include "mojo/public/c/system/main.h" | 16 #include "mojo/public/c/system/main.h" |
| 17 #include "mojo/public/cpp/application/application_delegate.h" | 17 #include "mojo/public/cpp/application/application_delegate.h" |
| 18 #include "mojo/public/cpp/application/application_impl.h" | 18 #include "mojo/public/cpp/application/application_impl.h" |
| 19 #include "mojo/public/cpp/application/interface_factory_impl.h" | 19 #include "mojo/public/cpp/application/interface_factory_impl.h" |
| 20 #include "mojo/services/native_viewport/public/cpp/args.h" | 20 #include "mojo/services/native_viewport/cpp/args.h" |
| 21 #include "services/gles2/gpu_impl.h" | 21 #include "services/gles2/gpu_impl.h" |
| 22 #include "services/native_viewport/native_viewport_impl.h" | 22 #include "services/native_viewport/native_viewport_impl.h" |
| 23 #include "ui/events/event_switches.h" | 23 #include "ui/events/event_switches.h" |
| 24 #include "ui/gl/gl_surface.h" | 24 #include "ui/gl/gl_surface.h" |
| 25 | 25 |
| 26 using mojo::ApplicationConnection; | 26 using mojo::ApplicationConnection; |
| 27 using mojo::Gpu; | 27 using mojo::Gpu; |
| 28 using mojo::NativeViewport; | 28 using mojo::NativeViewport; |
| 29 | 29 |
| 30 namespace native_viewport { | 30 namespace native_viewport { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 56 scoped_refptr<gles2::GpuState> gpu_state_; | 56 scoped_refptr<gles2::GpuState> gpu_state_; |
| 57 bool is_headless_; | 57 bool is_headless_; |
| 58 mojo::TracingImpl tracing_; | 58 mojo::TracingImpl tracing_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate); | 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace native_viewport | 63 } // namespace native_viewport |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |