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

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

Issue 292973007: DevTools: Focus/blur events that are triggered by DevTools get dispatched when page is unfocused (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 2328
2328 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma xLength) 2329 String Internals::textSurroundingNode(Node* node, int x, int y, unsigned long ma xLength)
2329 { 2330 {
2330 if (!node) 2331 if (!node)
2331 return String(); 2332 return String();
2332 blink::WebPoint point(x, y); 2333 blink::WebPoint point(x, y);
2333 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo rPoint(static_cast<IntPoint>(point))), maxLength); 2334 SurroundingText surroundingText(VisiblePosition(node->renderer()->positionFo rPoint(static_cast<IntPoint>(point))), maxLength);
2334 return surroundingText.content(); 2335 return surroundingText.content();
2335 } 2336 }
2336 2337
2338 void Internals::setFocused(bool focused)
2339 {
2340 frame()->page()->focusController().setFocused(focused);
2337 } 2341 }
2342
2343 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698