| 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 #ifndef SKY_VIEWER_DOCUMENT_VIEW_H_ | 5 #ifndef SKY_VIEWER_DOCUMENT_VIEW_H_ |
| 6 #define SKY_VIEWER_DOCUMENT_VIEW_H_ | 6 #define SKY_VIEWER_DOCUMENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" | 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 blink::WebNavigationPolicy decidePolicyForNavigation( | 94 blink::WebNavigationPolicy decidePolicyForNavigation( |
| 95 const blink::WebFrameClient::NavigationPolicyInfo& info) override; | 95 const blink::WebFrameClient::NavigationPolicyInfo& info) override; |
| 96 void didAddMessageToConsole( | 96 void didAddMessageToConsole( |
| 97 const blink::WebConsoleMessage& message, | 97 const blink::WebConsoleMessage& message, |
| 98 const blink::WebString& source_name, | 98 const blink::WebString& source_name, |
| 99 unsigned source_line, | 99 unsigned source_line, |
| 100 const blink::WebString& stack_trace) override; | 100 const blink::WebString& stack_trace) override; |
| 101 void didCreateIsolate(blink::WebLocalFrame* frame, | 101 void didCreateIsolate(blink::WebLocalFrame* frame, |
| 102 Dart_Isolate isolate) override; | 102 Dart_Isolate isolate) override; |
| 103 | 103 |
| 104 // SkyViewClient methods: |
| 105 void DidCreateIsolate(Dart_Isolate isolate) override; |
| 106 |
| 104 // WebViewClient methods: | 107 // WebViewClient methods: |
| 105 blink::ServiceProvider* services() override; | 108 blink::ServiceProvider* services() override; |
| 106 | 109 |
| 107 // Services methods: | 110 // Services methods: |
| 108 mojo::NavigatorHost* NavigatorHost() override; | 111 mojo::NavigatorHost* NavigatorHost() override; |
| 109 | 112 |
| 110 // ViewManagerDelegate methods: | 113 // ViewManagerDelegate methods: |
| 111 void OnEmbed(mojo::View* root, | 114 void OnEmbed(mojo::View* root, |
| 112 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 115 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 113 mojo::ServiceProviderPtr exposed_services) override; | 116 mojo::ServiceProviderPtr exposed_services) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 scoped_ptr<mojo::StrongBinding<mojo::ServiceProvider>> | 156 scoped_ptr<mojo::StrongBinding<mojo::ServiceProvider>> |
| 154 service_registry_service_provider_binding_; | 157 service_registry_service_provider_binding_; |
| 155 base::WeakPtrFactory<DocumentView> weak_factory_; | 158 base::WeakPtrFactory<DocumentView> weak_factory_; |
| 156 | 159 |
| 157 DISALLOW_COPY_AND_ASSIGN(DocumentView); | 160 DISALLOW_COPY_AND_ASSIGN(DocumentView); |
| 158 }; | 161 }; |
| 159 | 162 |
| 160 } // namespace sky | 163 } // namespace sky |
| 161 | 164 |
| 162 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ | 165 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ |
| OLD | NEW |