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

Side by Side Diff: components/html_viewer/html_document.cc

Issue 1184543002: Revert of Fix html_viewer build after latest blink roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « components/html_viewer/html_document.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/html_viewer/html_document.h" 5 #include "components/html_viewer/html_document.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 ChildFrameData child_frame_data; 313 ChildFrameData child_frame_data;
314 child_frame_data.view = child_frame_view; 314 child_frame_data.view = child_frame_view;
315 child_frame_data.scope = scope; 315 child_frame_data.scope = scope;
316 frame_to_view_[child_frame] = child_frame_data; 316 frame_to_view_[child_frame] = child_frame_data;
317 } 317 }
318 return child_frame; 318 return child_frame;
319 } 319 }
320 320
321 void HTMLDocument::frameDetached(blink::WebFrame* frame) { 321 void HTMLDocument::frameDetached(blink::WebFrame* frame) {
322 frameDetached(frame, DetachType::Remove);
323 }
324
325 void HTMLDocument::frameDetached(blink::WebFrame* frame, DetachType type) {
326 DCHECK(type == DetachType::Remove);
322 if (frame->parent()) 327 if (frame->parent())
323 frame->parent()->removeChild(frame); 328 frame->parent()->removeChild(frame);
324 329
325 // |frame| is invalid after here. 330 // |frame| is invalid after here.
326 frame->close(); 331 frame->close();
327 } 332 }
328 333
329 blink::WebCookieJar* HTMLDocument::cookieJar(blink::WebLocalFrame* frame) { 334 blink::WebCookieJar* HTMLDocument::cookieJar(blink::WebLocalFrame* frame) {
330 // TODO(darin): Blink does not fallback to the Platform provided WebCookieJar. 335 // TODO(darin): Blink does not fallback to the Platform provided WebCookieJar.
331 // Either it should, as it once did, or we should find another solution here. 336 // Either it should, as it once did, or we should find another solution here.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 touch_handler_->OnTouchEvent(*event); 434 touch_handler_->OnTouchEvent(*event);
430 return; 435 return;
431 } 436 }
432 scoped_ptr<blink::WebInputEvent> web_event = 437 scoped_ptr<blink::WebInputEvent> web_event =
433 event.To<scoped_ptr<blink::WebInputEvent>>(); 438 event.To<scoped_ptr<blink::WebInputEvent>>();
434 if (web_event) 439 if (web_event)
435 web_view_->handleInputEvent(*web_event); 440 web_view_->handleInputEvent(*web_event);
436 } 441 }
437 442
438 } // namespace html_viewer 443 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/html_document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698