| 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 COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ | 6 #define COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace mojo { | 34 namespace mojo { |
| 35 class ViewManager; | 35 class ViewManager; |
| 36 class View; | 36 class View; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace html_viewer { | 39 namespace html_viewer { |
| 40 | 40 |
| 41 class AxProviderImpl; | 41 class AxProviderImpl; |
| 42 class DevToolsAgentImpl; |
| 42 class Setup; | 43 class Setup; |
| 43 class WebLayerTreeViewImpl; | 44 class WebLayerTreeViewImpl; |
| 44 | 45 |
| 45 // A view for a single HTML document. | 46 // A view for a single HTML document. |
| 46 class HTMLDocument : public blink::WebViewClient, | 47 class HTMLDocument : public blink::WebViewClient, |
| 47 public blink::WebFrameClient, | 48 public blink::WebFrameClient, |
| 48 public mojo::ViewManagerDelegate, | 49 public mojo::ViewManagerDelegate, |
| 49 public mojo::ViewObserver, | 50 public mojo::ViewObserver, |
| 50 public mojo::InterfaceFactory<mojo::AxProvider> { | 51 public mojo::InterfaceFactory<mojo::AxProvider> { |
| 51 public: | 52 public: |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 std::set<mojo::InterfaceRequest<mojo::AxProvider>*> ax_provider_requests_; | 143 std::set<mojo::InterfaceRequest<mojo::AxProvider>*> ax_provider_requests_; |
| 143 std::set<AxProviderImpl*> ax_providers_; | 144 std::set<AxProviderImpl*> ax_providers_; |
| 144 | 145 |
| 145 // A flag set on didFinishLoad. | 146 // A flag set on didFinishLoad. |
| 146 bool did_finish_load_ = false; | 147 bool did_finish_load_ = false; |
| 147 | 148 |
| 148 Setup* setup_; | 149 Setup* setup_; |
| 149 | 150 |
| 150 scoped_ptr<TouchHandler> touch_handler_; | 151 scoped_ptr<TouchHandler> touch_handler_; |
| 151 | 152 |
| 153 scoped_ptr<DevToolsAgentImpl> devtools_agent_; |
| 154 |
| 152 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); | 155 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); |
| 153 }; | 156 }; |
| 154 | 157 |
| 155 } // namespace html_viewer | 158 } // namespace html_viewer |
| 156 | 159 |
| 157 #endif // COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ | 160 #endif // COMPONENTS_HTML_VIEWER_HTML_DOCUMENT_H_ |
| OLD | NEW |