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 "components/html_viewer/html_document.h" | 5 #include "components/html_viewer/html_document.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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop_proxy.h" | |
11 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
12 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
13 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
14 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
15 #include "components/html_viewer/blink_input_events_type_converters.h" | 14 #include "components/html_viewer/blink_input_events_type_converters.h" |
16 #include "components/html_viewer/blink_url_request_type_converters.h" | 15 #include "components/html_viewer/blink_url_request_type_converters.h" |
17 #include "components/html_viewer/media_factory.h" | 16 #include "components/html_viewer/media_factory.h" |
18 #include "components/html_viewer/setup.h" | 17 #include "components/html_viewer/setup.h" |
19 #include "components/html_viewer/web_layer_tree_view_impl.h" | 18 #include "components/html_viewer/web_layer_tree_view_impl.h" |
20 #include "components/html_viewer/web_storage_namespace_impl.h" | 19 #include "components/html_viewer/web_storage_namespace_impl.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 touch_handler_->OnTouchEvent(*event); | 349 touch_handler_->OnTouchEvent(*event); |
351 return; | 350 return; |
352 } | 351 } |
353 scoped_ptr<blink::WebInputEvent> web_event = | 352 scoped_ptr<blink::WebInputEvent> web_event = |
354 event.To<scoped_ptr<blink::WebInputEvent>>(); | 353 event.To<scoped_ptr<blink::WebInputEvent>>(); |
355 if (web_event) | 354 if (web_event) |
356 web_view_->handleInputEvent(*web_event); | 355 web_view_->handleInputEvent(*web_event); |
357 } | 356 } |
358 | 357 |
359 } // namespace html_viewer | 358 } // namespace html_viewer |
OLD | NEW |