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

Side by Side Diff: components/html_viewer/html_frame.h

Issue 1270313006: Connects PostMessage() for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_FRAME_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_FRAME_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ 6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // mandoline::FrameTreeClient: 190 // mandoline::FrameTreeClient:
191 void OnConnect(mandoline::FrameTreeServerPtr server, 191 void OnConnect(mandoline::FrameTreeServerPtr server,
192 uint32_t change_id, 192 uint32_t change_id,
193 mojo::Array<mandoline::FrameDataPtr> frame_data) override; 193 mojo::Array<mandoline::FrameDataPtr> frame_data) override;
194 void OnFrameAdded(uint32_t change_id, 194 void OnFrameAdded(uint32_t change_id,
195 mandoline::FrameDataPtr frame_data) override; 195 mandoline::FrameDataPtr frame_data) override;
196 void OnFrameRemoved(uint32_t change_id, uint32_t frame_id) override; 196 void OnFrameRemoved(uint32_t change_id, uint32_t frame_id) override;
197 void OnFrameClientPropertyChanged(uint32_t frame_id, 197 void OnFrameClientPropertyChanged(uint32_t frame_id,
198 const mojo::String& name, 198 const mojo::String& name,
199 mojo::Array<uint8_t> new_value) override; 199 mojo::Array<uint8_t> new_value) override;
200 void PostMessage(uint32_t source_frame_id,
201 uint32_t target_frame_id,
202 mandoline::HTMLMessageEventPtr serialized_event) override;
200 203
201 // WebViewClient methods: 204 // WebViewClient methods:
202 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); 205 virtual blink::WebStorageNamespace* createSessionStorageNamespace();
203 virtual void didCancelCompositionOnSelectionChange(); 206 virtual void didCancelCompositionOnSelectionChange();
204 virtual void didChangeContents(); 207 virtual void didChangeContents();
205 208
206 // WebWidgetClient methods: 209 // WebWidgetClient methods:
207 virtual void initializeLayerTreeView(); 210 virtual void initializeLayerTreeView();
208 virtual blink::WebLayerTreeView* layerTreeView(); 211 virtual blink::WebLayerTreeView* layerTreeView();
209 virtual void resetInputMethod(); 212 virtual void resetInputMethod();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 virtual void didChangeLoadProgress(double load_progress); 247 virtual void didChangeLoadProgress(double load_progress);
245 virtual void didChangeName(blink::WebLocalFrame* frame, 248 virtual void didChangeName(blink::WebLocalFrame* frame,
246 const blink::WebString& name); 249 const blink::WebString& name);
247 virtual void didCommitProvisionalLoad( 250 virtual void didCommitProvisionalLoad(
248 blink::WebLocalFrame* frame, 251 blink::WebLocalFrame* frame,
249 const blink::WebHistoryItem& item, 252 const blink::WebHistoryItem& item,
250 blink::WebHistoryCommitType commit_type); 253 blink::WebHistoryCommitType commit_type);
251 254
252 // blink::WebRemoteFrameClient: 255 // blink::WebRemoteFrameClient:
253 virtual void frameDetached(blink::WebRemoteFrameClient::DetachType type); 256 virtual void frameDetached(blink::WebRemoteFrameClient::DetachType type);
254 virtual void postMessageEvent(blink::WebLocalFrame* source_frame, 257 virtual void postMessageEvent(blink::WebLocalFrame* source_web_frame,
255 blink::WebRemoteFrame* target_frame, 258 blink::WebRemoteFrame* target_web_frame,
256 blink::WebSecurityOrigin target_origin, 259 blink::WebSecurityOrigin target_origin,
257 blink::WebDOMMessageEvent event); 260 blink::WebDOMMessageEvent event);
258 virtual void initializeChildFrame(const blink::WebRect& frame_rect, 261 virtual void initializeChildFrame(const blink::WebRect& frame_rect,
259 float scale_factor); 262 float scale_factor);
260 virtual void navigate(const blink::WebURLRequest& request, 263 virtual void navigate(const blink::WebURLRequest& request,
261 bool should_replace_current_entry); 264 bool should_replace_current_entry);
262 virtual void reload(bool ignore_cache, bool is_client_redirect); 265 virtual void reload(bool ignore_cache, bool is_client_redirect);
263 virtual void forwardInputEvent(const blink::WebInputEvent* event); 266 virtual void forwardInputEvent(const blink::WebInputEvent* event);
264 267
265 HTMLFrameTreeManager* frame_tree_manager_; 268 HTMLFrameTreeManager* frame_tree_manager_;
(...skipping 26 matching lines...) Expand all
292 blink::WebTextInputInfo text_input_info_; 295 blink::WebTextInputInfo text_input_info_;
293 296
294 base::WeakPtrFactory<HTMLFrame> weak_factory_; 297 base::WeakPtrFactory<HTMLFrame> weak_factory_;
295 298
296 DISALLOW_COPY_AND_ASSIGN(HTMLFrame); 299 DISALLOW_COPY_AND_ASSIGN(HTMLFrame);
297 }; 300 };
298 301
299 } // namespace html_viewer 302 } // namespace html_viewer
300 303
301 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ 304 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_
OLDNEW
« no previous file with comments | « components/html_viewer/document_resource_waiter.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698