| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void didAddMessageToConsole( | 91 void didAddMessageToConsole( |
| 92 const blink::WebConsoleMessage& message, | 92 const blink::WebConsoleMessage& message, |
| 93 const blink::WebString& source_name, | 93 const blink::WebString& source_name, |
| 94 unsigned source_line, | 94 unsigned source_line, |
| 95 const blink::WebString& stack_trace) override; | 95 const blink::WebString& stack_trace) override; |
| 96 void didCreateScriptContext( | 96 void didCreateScriptContext( |
| 97 blink::WebLocalFrame*, | 97 blink::WebLocalFrame*, |
| 98 v8::Handle<v8::Context>) override; | 98 v8::Handle<v8::Context>) override; |
| 99 | 99 |
| 100 // WebViewClient methods: | 100 // WebViewClient methods: |
| 101 blink::ServiceProvider& services() override; | 101 blink::ServiceProvider* services() override; |
| 102 | 102 |
| 103 // Services methods: | 103 // Services methods: |
| 104 mojo::NavigatorHost* NavigatorHost() override; | 104 mojo::NavigatorHost* NavigatorHost() override; |
| 105 mojo::Shell* Shell() override; | |
| 106 | 105 |
| 107 // ViewManagerDelegate methods: | 106 // ViewManagerDelegate methods: |
| 108 void OnEmbed(mojo::View* root, | 107 void OnEmbed(mojo::View* root, |
| 109 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 108 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 110 mojo::ServiceProviderPtr exposed_services) override; | 109 mojo::ServiceProviderPtr exposed_services) override; |
| 111 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; | 110 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; |
| 112 | 111 |
| 113 // ViewObserver methods: | 112 // ViewObserver methods: |
| 114 void OnViewBoundsChanged(mojo::View* view, | 113 void OnViewBoundsChanged(mojo::View* view, |
| 115 const mojo::Rect& old_bounds, | 114 const mojo::Rect& old_bounds, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int debugger_id_; | 147 int debugger_id_; |
| 149 | 148 |
| 150 base::WeakPtrFactory<DocumentView> weak_factory_; | 149 base::WeakPtrFactory<DocumentView> weak_factory_; |
| 151 | 150 |
| 152 DISALLOW_COPY_AND_ASSIGN(DocumentView); | 151 DISALLOW_COPY_AND_ASSIGN(DocumentView); |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace sky | 154 } // namespace sky |
| 156 | 155 |
| 157 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ | 156 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ |
| OLD | NEW |