| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #include "ui/gfx/geometry/size.h" | 66 #include "ui/gfx/geometry/size.h" |
| 67 #include "url/origin.h" | 67 #include "url/origin.h" |
| 68 | 68 |
| 69 using mandoline::HTMLMessageEvent; | 69 using mandoline::HTMLMessageEvent; |
| 70 using mandoline::HTMLMessageEventPtr; | 70 using mandoline::HTMLMessageEventPtr; |
| 71 using mojo::AxProvider; | 71 using mojo::AxProvider; |
| 72 using mojo::Rect; | 72 using mojo::Rect; |
| 73 using mojo::ServiceProviderPtr; | 73 using mojo::ServiceProviderPtr; |
| 74 using mojo::URLResponsePtr; | 74 using mojo::URLResponsePtr; |
| 75 using mojo::View; | 75 using mojo::View; |
| 76 using mojo::WeakBindToRequest; |
| 76 | 77 |
| 77 namespace html_viewer { | 78 namespace html_viewer { |
| 78 namespace { | 79 namespace { |
| 79 | 80 |
| 80 mandoline::NavigationTargetType WebNavigationPolicyToNavigationTarget( | 81 mandoline::NavigationTargetType WebNavigationPolicyToNavigationTarget( |
| 81 blink::WebNavigationPolicy policy) { | 82 blink::WebNavigationPolicy policy) { |
| 82 switch (policy) { | 83 switch (policy) { |
| 83 case blink::WebNavigationPolicyCurrentTab: | 84 case blink::WebNavigationPolicyCurrentTab: |
| 84 return mandoline::NAVIGATION_TARGET_TYPE_EXISTING_FRAME; | 85 return mandoline::NAVIGATION_TARGET_TYPE_EXISTING_FRAME; |
| 85 case blink::WebNavigationPolicyNewBackgroundTab: | 86 case blink::WebNavigationPolicyNewBackgroundTab: |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 | 892 |
| 892 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { | 893 void HTMLFrame::reload(bool ignore_cache, bool is_client_redirect) { |
| 893 NOTIMPLEMENTED(); | 894 NOTIMPLEMENTED(); |
| 894 } | 895 } |
| 895 | 896 |
| 896 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { | 897 void HTMLFrame::forwardInputEvent(const blink::WebInputEvent* event) { |
| 897 NOTIMPLEMENTED(); | 898 NOTIMPLEMENTED(); |
| 898 } | 899 } |
| 899 | 900 |
| 900 } // namespace mojo | 901 } // namespace mojo |
| OLD | NEW |