Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Side by Side Diff: mojo/services/html_viewer/html_document.h

Issue 1018543002: Wires through scale factor and bounds in html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698