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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 308813003: Merge 174628 "DevTools: Focus/blur events that are triggered by ..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1985/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #include "core/inspector/InspectorCounters.h" 98 #include "core/inspector/InspectorCounters.h"
99 #include "core/inspector/InspectorFrontendChannel.h" 99 #include "core/inspector/InspectorFrontendChannel.h"
100 #include "core/inspector/InspectorInstrumentation.h" 100 #include "core/inspector/InspectorInstrumentation.h"
101 #include "core/inspector/InspectorOverlay.h" 101 #include "core/inspector/InspectorOverlay.h"
102 #include "core/inspector/InstrumentingAgents.h" 102 #include "core/inspector/InstrumentingAgents.h"
103 #include "core/loader/FrameLoader.h" 103 #include "core/loader/FrameLoader.h"
104 #include "core/loader/HistoryItem.h" 104 #include "core/loader/HistoryItem.h"
105 #include "core/page/Chrome.h" 105 #include "core/page/Chrome.h"
106 #include "core/page/ChromeClient.h" 106 #include "core/page/ChromeClient.h"
107 #include "core/page/EventHandler.h" 107 #include "core/page/EventHandler.h"
108 #include "core/page/FocusController.h"
108 #include "core/page/Page.h" 109 #include "core/page/Page.h"
109 #include "core/page/PagePopupController.h" 110 #include "core/page/PagePopupController.h"
110 #include "core/page/PrintContext.h" 111 #include "core/page/PrintContext.h"
111 #include "core/rendering/RenderLayer.h" 112 #include "core/rendering/RenderLayer.h"
112 #include "core/rendering/RenderMenuList.h" 113 #include "core/rendering/RenderMenuList.h"
113 #include "core/rendering/RenderObject.h" 114 #include "core/rendering/RenderObject.h"
114 #include "core/rendering/RenderTreeAsText.h" 115 #include "core/rendering/RenderTreeAsText.h"
115 #include "core/rendering/RenderView.h" 116 #include "core/rendering/RenderView.h"
116 #include "core/rendering/compositing/CompositedLayerMapping.h" 117 #include "core/rendering/compositing/CompositedLayerMapping.h"
117 #include "core/rendering/compositing/RenderLayerCompositor.h" 118 #include "core/rendering/compositing/RenderLayerCompositor.h"
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 2352
2352 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma xLength) 2353 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma xLength)
2353 { 2354 {
2354 if (!node) 2355 if (!node)
2355 return String(); 2356 return String();
2356 blink::WebPoint point(x, y); 2357 blink::WebPoint point(x, y);
2357 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo rPoint(static_cast<IntPoint>(point))), maxLength); 2358 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo rPoint(static_cast<IntPoint>(point))), maxLength);
2358 return surroundingText.content(); 2359 return surroundingText.content();
2359 } 2360 }
2360 2361
2362 void Internals::setFocused(bool focused)
2363 {
2364 frame()->page()->focusController().setFocused(focused);
2361 } 2365 }
2366
2367 }
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698