| 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 #include "services/sky/document_view.h" | 5 #include "services/sky/document_view.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "mojo/converters/geometry/geometry_type_converters.h" | 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 13 #include "mojo/converters/input_events/input_events_type_converters.h" | 13 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 14 #include "mojo/public/cpp/application/connect.h" | 14 #include "mojo/public/cpp/application/connect.h" |
| 15 #include "mojo/public/cpp/system/data_pipe.h" | 15 #include "mojo/public/cpp/system/data_pipe.h" |
| 16 #include "mojo/public/interfaces/application/shell.mojom.h" | 16 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 17 #include "mojo/services/view_manager/public/cpp/view.h" | 17 #include "mojo/services/view_manager/public/cpp/view.h" |
| 18 #include "mojo/services/view_manager/public/cpp/view_manager.h" | 18 #include "mojo/services/view_manager/public/cpp/view_manager.h" |
| 19 #include "mojo/services/view_manager/public/interfaces/view_manager.mojom.h" | 19 #include "mojo/services/view_manager/public/interfaces/view_manager.mojom.h" |
| 20 #include "services/sky/compositor/layer.h" | 20 #include "services/sky/compositor/layer.h" |
| 21 #include "services/sky/compositor/layer_host.h" | 21 #include "services/sky/compositor/layer_host.h" |
| 22 #include "services/sky/compositor/rasterizer_bitmap.h" | 22 #include "services/sky/compositor/rasterizer_bitmap.h" |
| 23 #include "services/sky/compositor/rasterizer_ganesh.h" | 23 #include "services/sky/compositor/rasterizer_ganesh.h" |
| 24 #include "services/sky/converters/input_event_types.h" | 24 #include "services/sky/converters/input_event_types.h" |
| 25 #include "services/sky/dart_library_provider_impl.h" | 25 #include "services/sky/dart_library_provider_impl.h" |
| 26 #include "services/sky/internals.h" | 26 #include "services/sky/internals.h" |
| 27 #include "services/sky/runtime_flags.h" | 27 #include "services/sky/runtime_flags.h" |
| 28 #include "skia/ext/refptr.h" | 28 #include "skia/ext/refptr.h" |
| 29 #include "sky/engine/public/platform/Platform.h" | 29 #include "sky/engine/public/platform/Platform.h" |
| 30 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" | |
| 31 #include "sky/engine/public/platform/WebInputEvent.h" | 30 #include "sky/engine/public/platform/WebInputEvent.h" |
| 32 #include "sky/engine/public/platform/WebScreenInfo.h" | 31 #include "sky/engine/public/platform/WebScreenInfo.h" |
| 33 #include "sky/engine/public/web/Sky.h" | 32 #include "sky/engine/public/web/Sky.h" |
| 34 #include "sky/services/platform/url_request_types.h" | |
| 35 #include "third_party/skia/include/core/SkCanvas.h" | 33 #include "third_party/skia/include/core/SkCanvas.h" |
| 36 #include "third_party/skia/include/core/SkColor.h" | 34 #include "third_party/skia/include/core/SkColor.h" |
| 37 #include "third_party/skia/include/core/SkDevice.h" | 35 #include "third_party/skia/include/core/SkDevice.h" |
| 38 #include "ui/events/gestures/gesture_recognizer.h" | 36 #include "ui/events/gestures/gesture_recognizer.h" |
| 39 | 37 |
| 40 namespace sky { | 38 namespace sky { |
| 41 namespace { | 39 namespace { |
| 42 | 40 |
| 43 ui::EventType ConvertEventTypeToUIEventType(blink::WebInputEvent::Type type) { | 41 ui::EventType ConvertEventTypeToUIEventType(blink::WebInputEvent::Type type) { |
| 44 if (type == blink::WebInputEvent::PointerDown) | 42 if (type == blink::WebInputEvent::PointerDown) |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); | 310 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); |
| 313 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); | 311 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); |
| 314 } | 312 } |
| 315 | 313 |
| 316 void DocumentView::ScheduleFrame() { | 314 void DocumentView::ScheduleFrame() { |
| 317 DCHECK(sky_view_); | 315 DCHECK(sky_view_); |
| 318 layer_host_->SetNeedsAnimate(); | 316 layer_host_->SetNeedsAnimate(); |
| 319 } | 317 } |
| 320 | 318 |
| 321 } // namespace sky | 319 } // namespace sky |
| OLD | NEW |