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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2712773002: Add trace event for detecting main frame in loading metrics. (Closed)
Patch Set: comment Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after
2405 return frame() 2405 return frame()
2406 ->frameScheduler() 2406 ->frameScheduler()
2407 ->unthrottledTaskRunner() 2407 ->unthrottledTaskRunner()
2408 ->toSingleThreadTaskRunner(); 2408 ->toSingleThreadTaskRunner();
2409 } 2409 }
2410 2410
2411 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2411 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2412 return m_inputMethodController.get(); 2412 return m_inputMethodController.get();
2413 } 2413 }
2414 2414
2415 void* WebLocalFrameImpl::frameIdForTracing() const {
2416 return frame();
2417 }
2418
2415 void WebLocalFrameImpl::extractSmartClipData(WebRect rectInViewport, 2419 void WebLocalFrameImpl::extractSmartClipData(WebRect rectInViewport,
2416 WebString& clipText, 2420 WebString& clipText,
2417 WebString& clipHtml) { 2421 WebString& clipHtml) {
2418 SmartClipData clipData = SmartClip(frame()).dataForRect(rectInViewport); 2422 SmartClipData clipData = SmartClip(frame()).dataForRect(rectInViewport);
2419 clipText = clipData.clipData(); 2423 clipText = clipData.clipData();
2420 2424
2421 WebPoint startPoint(rectInViewport.x, rectInViewport.y); 2425 WebPoint startPoint(rectInViewport.x, rectInViewport.y);
2422 WebPoint endPoint(rectInViewport.x + rectInViewport.width, 2426 WebPoint endPoint(rectInViewport.x + rectInViewport.width,
2423 rectInViewport.y + rectInViewport.height); 2427 rectInViewport.y + rectInViewport.height);
2424 VisiblePosition startVisiblePosition = 2428 VisiblePosition startVisiblePosition =
(...skipping 13 matching lines...) Expand all
2438 createMarkup(startPosition, endPosition, AnnotateForInterchange, 2442 createMarkup(startPosition, endPosition, AnnotateForInterchange,
2439 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2443 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2440 } else { 2444 } else {
2441 clipHtml = 2445 clipHtml =
2442 createMarkup(endPosition, startPosition, AnnotateForInterchange, 2446 createMarkup(endPosition, startPosition, AnnotateForInterchange,
2443 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2447 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2444 } 2448 }
2445 } 2449 }
2446 2450
2447 } // namespace blink 2451 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698