| 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 "sky/viewer/document_view.h" | 5 #include "sky/viewer/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 "skia/ext/refptr.h" | 20 #include "skia/ext/refptr.h" |
| 21 #include "sky/compositor/layer.h" | |
| 22 #include "sky/compositor/layer_host.h" | |
| 23 #include "sky/compositor/rasterizer_bitmap.h" | |
| 24 #include "sky/compositor/rasterizer_ganesh.h" | |
| 25 #include "sky/engine/public/platform/Platform.h" | 21 #include "sky/engine/public/platform/Platform.h" |
| 26 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" | 22 #include "sky/engine/public/platform/WebHTTPHeaderVisitor.h" |
| 27 #include "sky/engine/public/platform/WebInputEvent.h" | 23 #include "sky/engine/public/platform/WebInputEvent.h" |
| 28 #include "sky/engine/public/platform/WebScreenInfo.h" | 24 #include "sky/engine/public/platform/WebScreenInfo.h" |
| 29 #include "sky/engine/public/web/Sky.h" | 25 #include "sky/engine/public/web/Sky.h" |
| 30 #include "sky/engine/public/web/WebConsoleMessage.h" | 26 #include "sky/engine/public/web/WebConsoleMessage.h" |
| 31 #include "sky/engine/public/web/WebDocument.h" | 27 #include "sky/engine/public/web/WebDocument.h" |
| 32 #include "sky/engine/public/web/WebElement.h" | 28 #include "sky/engine/public/web/WebElement.h" |
| 33 #include "sky/engine/public/web/WebLocalFrame.h" | 29 #include "sky/engine/public/web/WebLocalFrame.h" |
| 34 #include "sky/engine/public/web/WebScriptSource.h" | 30 #include "sky/engine/public/web/WebScriptSource.h" |
| 35 #include "sky/engine/public/web/WebSettings.h" | 31 #include "sky/engine/public/web/WebSettings.h" |
| 36 #include "sky/engine/public/web/WebView.h" | 32 #include "sky/engine/public/web/WebView.h" |
| 37 #include "sky/services/platform/url_request_types.h" | 33 #include "sky/services/platform/url_request_types.h" |
| 34 #include "sky/viewer/compositor/layer.h" |
| 35 #include "sky/viewer/compositor/layer_host.h" |
| 36 #include "sky/viewer/compositor/rasterizer_bitmap.h" |
| 37 #include "sky/viewer/compositor/rasterizer_ganesh.h" |
| 38 #include "sky/viewer/converters/input_event_types.h" | 38 #include "sky/viewer/converters/input_event_types.h" |
| 39 #include "sky/viewer/dart_library_provider_impl.h" | 39 #include "sky/viewer/dart_library_provider_impl.h" |
| 40 #include "sky/viewer/internals.h" | 40 #include "sky/viewer/internals.h" |
| 41 #include "sky/viewer/runtime_flags.h" | 41 #include "sky/viewer/runtime_flags.h" |
| 42 #include "third_party/skia/include/core/SkCanvas.h" | 42 #include "third_party/skia/include/core/SkCanvas.h" |
| 43 #include "third_party/skia/include/core/SkColor.h" | 43 #include "third_party/skia/include/core/SkColor.h" |
| 44 #include "third_party/skia/include/core/SkDevice.h" | 44 #include "third_party/skia/include/core/SkDevice.h" |
| 45 #include "ui/events/gestures/gesture_recognizer.h" | 45 #include "ui/events/gestures/gesture_recognizer.h" |
| 46 | 46 |
| 47 namespace sky { | 47 namespace sky { |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); | 456 new mojo::StrongBinding<mojo::ServiceProvider>(sp_impl, &sp)); |
| 457 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); | 457 service_registry_->AddServices(interface_names.Pass(), sp.Pass()); |
| 458 } | 458 } |
| 459 | 459 |
| 460 void DocumentView::ScheduleFrame() { | 460 void DocumentView::ScheduleFrame() { |
| 461 DCHECK(sky_view_); | 461 DCHECK(sky_view_); |
| 462 layer_host_->SetNeedsAnimate(); | 462 layer_host_->SetNeedsAnimate(); |
| 463 } | 463 } |
| 464 | 464 |
| 465 } // namespace sky | 465 } // namespace sky |
| OLD | NEW |