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

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

Issue 1090953002: Small cleanups in the Mojo HTML viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 WebMediaPlayerFactory* web_media_player_factory, 69 WebMediaPlayerFactory* web_media_player_factory,
70 bool is_headless); 70 bool is_headless);
71 ~HTMLDocument() override; 71 ~HTMLDocument() override;
72 72
73 private: 73 private:
74 // Updates the size and scale factor of the webview and related classes from 74 // Updates the size and scale factor of the webview and related classes from
75 // |root_|. 75 // |root_|.
76 void UpdateWebviewSizeFromViewSize(); 76 void UpdateWebviewSizeFromViewSize();
77 77
78 // WebViewClient methods: 78 // WebViewClient methods:
79 blink::WebStorageNamespace* createSessionStorageNamespace() override; 79 virtual blink::WebStorageNamespace* createSessionStorageNamespace();
80 80
81 // WebWidgetClient methods: 81 // WebWidgetClient methods:
82 void initializeLayerTreeView() override; 82 void initializeLayerTreeView() override;
83 blink::WebLayerTreeView* layerTreeView() override; 83 blink::WebLayerTreeView* layerTreeView() override;
84 84
85 // WebFrameClient methods: 85 // WebFrameClient methods:
86 virtual blink::WebMediaPlayer* createMediaPlayer( 86 virtual blink::WebMediaPlayer* createMediaPlayer(
87 blink::WebLocalFrame* frame, 87 blink::WebLocalFrame* frame,
88 const blink::WebURL& url, 88 const blink::WebURL& url,
89 blink::WebMediaPlayerClient* client); 89 blink::WebMediaPlayerClient* client);
90 blink::WebMediaPlayer* createMediaPlayer( 90 virtual blink::WebMediaPlayer* createMediaPlayer(
91 blink::WebLocalFrame* frame, 91 blink::WebLocalFrame* frame,
92 const blink::WebURL& url, 92 const blink::WebURL& url,
93 blink::WebMediaPlayerClient* client, 93 blink::WebMediaPlayerClient* client,
94 blink::WebContentDecryptionModule* initial_cdm) override; 94 blink::WebContentDecryptionModule* initial_cdm);
95 blink::WebFrame* createChildFrame( 95 virtual blink::WebFrame* createChildFrame(
96 blink::WebLocalFrame* parent, 96 blink::WebLocalFrame* parent,
97 const blink::WebString& frameName, 97 const blink::WebString& frameName,
98 blink::WebSandboxFlags sandboxFlags) override; 98 blink::WebSandboxFlags sandboxFlags);
99 void frameDetached(blink::WebFrame*) override; 99 virtual void frameDetached(blink::WebFrame*);
100 blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame) override; 100 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame);
101 blink::WebNavigationPolicy decidePolicyForNavigation( 101 virtual blink::WebNavigationPolicy decidePolicyForNavigation(
102 blink::WebLocalFrame* frame, 102 blink::WebLocalFrame* frame,
103 blink::WebDataSource::ExtraData* data, 103 blink::WebDataSource::ExtraData* data,
104 const blink::WebURLRequest& request, 104 const blink::WebURLRequest& request,
105 blink::WebNavigationType nav_type, 105 blink::WebNavigationType nav_type,
106 blink::WebNavigationPolicy default_policy, 106 blink::WebNavigationPolicy default_policy,
107 bool isRedirect) override; 107 bool isRedirect);
108 void didAddMessageToConsole(const blink::WebConsoleMessage& message, 108 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message,
109 const blink::WebString& source_name, 109 const blink::WebString& source_name,
110 unsigned source_line, 110 unsigned source_line,
111 const blink::WebString& stack_trace) override; 111 const blink::WebString& stack_trace);
112 void didFinishLoad(blink::WebLocalFrame* frame) override; 112 virtual void didFinishLoad(blink::WebLocalFrame* frame);
113 void didNavigateWithinPage(blink::WebLocalFrame* frame, 113 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
114 const blink::WebHistoryItem& history_item, 114 const blink::WebHistoryItem& history_item,
115 blink::WebHistoryCommitType commit_type) override; 115 blink::WebHistoryCommitType commit_type);
116 blink::WebEncryptedMediaClient* encryptedMediaClient() override; 116 virtual blink::WebEncryptedMediaClient* encryptedMediaClient();
117 117
118 // ViewManagerDelegate methods: 118 // ViewManagerDelegate methods:
119 void OnEmbed(mojo::View* root, 119 void OnEmbed(mojo::View* root,
120 mojo::InterfaceRequest<mojo::ServiceProvider> services, 120 mojo::InterfaceRequest<mojo::ServiceProvider> services,
121 mojo::ServiceProviderPtr exposed_services) override; 121 mojo::ServiceProviderPtr exposed_services) override;
122 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; 122 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override;
123 123
124 // ViewObserver methods: 124 // ViewObserver methods:
125 void OnViewBoundsChanged(mojo::View* view, 125 void OnViewBoundsChanged(mojo::View* view,
126 const mojo::Rect& old_bounds, 126 const mojo::Rect& old_bounds,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 scoped_ptr<TouchHandler> touch_handler_; 168 scoped_ptr<TouchHandler> touch_handler_;
169 169
170 float device_pixel_ratio_; 170 float device_pixel_ratio_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(HTMLDocument); 172 DISALLOW_COPY_AND_ASSIGN(HTMLDocument);
173 }; 173 };
174 174
175 } // namespace html_viewer 175 } // namespace html_viewer
176 176
177 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_ 177 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.h ('k') | mojo/services/html_viewer/mojo_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698