| 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 MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ |
| 6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 6 #define MOJO_SERVICES_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // |shell| is the Shell connection for this mojo::Application. | 62 // |shell| is the Shell connection for this mojo::Application. |
| 63 HTMLDocument(mojo::InterfaceRequest<mojo::ServiceProvider> services, | 63 HTMLDocument(mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 64 mojo::URLResponsePtr response, | 64 mojo::URLResponsePtr response, |
| 65 mojo::Shell* shell, | 65 mojo::Shell* shell, |
| 66 scoped_refptr<base::MessageLoopProxy> compositor_thread, | 66 scoped_refptr<base::MessageLoopProxy> compositor_thread, |
| 67 WebMediaPlayerFactory* web_media_player_factory, | 67 WebMediaPlayerFactory* web_media_player_factory, |
| 68 bool is_headless); | 68 bool is_headless); |
| 69 virtual ~HTMLDocument(); | 69 virtual ~HTMLDocument(); |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 // Updates the size and scale factor of the webview and related classes from |
| 73 // |root_|. |
| 74 void UpdateWebviewSizeFromViewSize(); |
| 75 |
| 72 // WebViewClient methods: | 76 // WebViewClient methods: |
| 73 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); | 77 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); |
| 74 | 78 |
| 75 // WebWidgetClient methods: | 79 // WebWidgetClient methods: |
| 76 virtual void initializeLayerTreeView(); | 80 virtual void initializeLayerTreeView(); |
| 77 virtual blink::WebLayerTreeView* layerTreeView(); | 81 virtual blink::WebLayerTreeView* layerTreeView(); |
| 78 | 82 |
| 79 // WebFrameClient methods: | 83 // WebFrameClient methods: |
| 80 virtual blink::WebMediaPlayer* createMediaPlayer( | 84 virtual blink::WebMediaPlayer* createMediaPlayer( |
| 81 blink::WebLocalFrame* frame, | 85 blink::WebLocalFrame* frame, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 152 |
| 149 // Set if the content will never be displayed. | 153 // Set if the content will never be displayed. |
| 150 bool is_headless_; | 154 bool is_headless_; |
| 151 | 155 |
| 152 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); | 156 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 } // namespace html_viewer | 159 } // namespace html_viewer |
| 156 | 160 |
| 157 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ | 161 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ |
| OLD | NEW |