| 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 "components/html_viewer/html_frame.h" | 5 #include "components/html_viewer/html_frame.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "third_party/WebKit/public/web/WebScriptSource.h" | 61 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 62 #include "third_party/WebKit/public/web/WebView.h" | 62 #include "third_party/WebKit/public/web/WebView.h" |
| 63 #include "ui/gfx/geometry/dip_util.h" | 63 #include "ui/gfx/geometry/dip_util.h" |
| 64 #include "ui/gfx/geometry/size.h" | 64 #include "ui/gfx/geometry/size.h" |
| 65 #include "url/gurl.h" | 65 #include "url/gurl.h" |
| 66 #include "url/origin.h" | 66 #include "url/origin.h" |
| 67 #include "url/url_constants.h" | 67 #include "url/url_constants.h" |
| 68 | 68 |
| 69 using mojo::AxProvider; | 69 using mojo::AxProvider; |
| 70 using mojo::Rect; | 70 using mojo::Rect; |
| 71 using mojo::ServiceProviderPtr; | 71 using mojo::InterfaceProviderPtr; |
| 72 using mojo::URLResponsePtr; | 72 using mojo::URLResponsePtr; |
| 73 using web_view::mojom::HTMLMessageEvent; | 73 using web_view::mojom::HTMLMessageEvent; |
| 74 using web_view::mojom::HTMLMessageEventPtr; | 74 using web_view::mojom::HTMLMessageEventPtr; |
| 75 | 75 |
| 76 namespace html_viewer { | 76 namespace html_viewer { |
| 77 namespace { | 77 namespace { |
| 78 | 78 |
| 79 const size_t kMaxTitleChars = 4 * 1024; | 79 const size_t kMaxTitleChars = 4 * 1024; |
| 80 | 80 |
| 81 web_view::mojom::NavigationTargetType WebNavigationPolicyToNavigationTarget( | 81 web_view::mojom::NavigationTargetType WebNavigationPolicyToNavigationTarget( |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 | 1041 |
| 1042 if (!surface_layer_) | 1042 if (!surface_layer_) |
| 1043 return; | 1043 return; |
| 1044 | 1044 |
| 1045 surface_layer_->SetSurfaceId(cc::SurfaceId(owned_window_->window()->id()), | 1045 surface_layer_->SetSurfaceId(cc::SurfaceId(owned_window_->window()->id()), |
| 1046 global_state()->device_pixel_ratio(), | 1046 global_state()->device_pixel_ratio(), |
| 1047 owned_window_->window()->bounds().size()); | 1047 owned_window_->window()->bounds().size()); |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 } // namespace mojo | 1050 } // namespace mojo |
| OLD | NEW |