OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |