OLD | NEW |
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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 #include "public/web/WebConsoleMessage.h" | 196 #include "public/web/WebConsoleMessage.h" |
197 #include "public/web/WebDOMEvent.h" | 197 #include "public/web/WebDOMEvent.h" |
198 #include "public/web/WebDocument.h" | 198 #include "public/web/WebDocument.h" |
199 #include "public/web/WebFindOptions.h" | 199 #include "public/web/WebFindOptions.h" |
200 #include "public/web/WebFormElement.h" | 200 #include "public/web/WebFormElement.h" |
201 #include "public/web/WebFrameClient.h" | 201 #include "public/web/WebFrameClient.h" |
202 #include "public/web/WebFrameOwnerProperties.h" | 202 #include "public/web/WebFrameOwnerProperties.h" |
203 #include "public/web/WebHistoryItem.h" | 203 #include "public/web/WebHistoryItem.h" |
204 #include "public/web/WebIconURL.h" | 204 #include "public/web/WebIconURL.h" |
205 #include "public/web/WebInputElement.h" | 205 #include "public/web/WebInputElement.h" |
| 206 #include "public/web/WebInputMethodController.h" |
206 #include "public/web/WebKit.h" | 207 #include "public/web/WebKit.h" |
207 #include "public/web/WebNode.h" | 208 #include "public/web/WebNode.h" |
208 #include "public/web/WebPerformance.h" | 209 #include "public/web/WebPerformance.h" |
209 #include "public/web/WebPlugin.h" | 210 #include "public/web/WebPlugin.h" |
210 #include "public/web/WebPrintParams.h" | 211 #include "public/web/WebPrintParams.h" |
211 #include "public/web/WebPrintPresetOptions.h" | 212 #include "public/web/WebPrintPresetOptions.h" |
212 #include "public/web/WebRange.h" | 213 #include "public/web/WebRange.h" |
213 #include "public/web/WebScriptSource.h" | 214 #include "public/web/WebScriptSource.h" |
214 #include "public/web/WebSerializedScriptValue.h" | 215 #include "public/web/WebSerializedScriptValue.h" |
215 #include "public/web/WebTreeScopeType.h" | 216 #include "public/web/WebTreeScopeType.h" |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, | 1560 WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, |
1560 WebFrameClient* client) | 1561 WebFrameClient* client) |
1561 : WebLocalFrame(scope), | 1562 : WebLocalFrame(scope), |
1562 m_frameLoaderClientImpl(FrameLoaderClientImpl::create(this)), | 1563 m_frameLoaderClientImpl(FrameLoaderClientImpl::create(this)), |
1563 m_frameWidget(0), | 1564 m_frameWidget(0), |
1564 m_client(client), | 1565 m_client(client), |
1565 m_autofillClient(0), | 1566 m_autofillClient(0), |
1566 m_contentSettingsClient(0), | 1567 m_contentSettingsClient(0), |
1567 m_inputEventsScaleFactorForEmulation(1), | 1568 m_inputEventsScaleFactorForEmulation(1), |
1568 m_webDevToolsFrontend(0), | 1569 m_webDevToolsFrontend(0), |
| 1570 m_inputMethodController(new WebInputMethodControllerImpl(this)), |
1569 m_selfKeepAlive(this) { | 1571 m_selfKeepAlive(this) { |
1570 DCHECK(m_client); | 1572 DCHECK(m_client); |
1571 frameCount++; | 1573 frameCount++; |
1572 } | 1574 } |
1573 | 1575 |
1574 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, | 1576 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, |
1575 WebFrameClient* client) | 1577 WebFrameClient* client) |
1576 : WebLocalFrameImpl(oldWebFrame->inShadowTree() | 1578 : WebLocalFrameImpl(oldWebFrame->inShadowTree() |
1577 ? WebTreeScopeType::Shadow | 1579 ? WebTreeScopeType::Shadow |
1578 : WebTreeScopeType::Document, | 1580 : WebTreeScopeType::Document, |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2399 } else if (metric == "npnNegotiatedProtocol") { | 2401 } else if (metric == "npnNegotiatedProtocol") { |
2400 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; | 2402 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; |
2401 } else if (metric == "wasAlternateProtocolAvailable") { | 2403 } else if (metric == "wasAlternateProtocolAvailable") { |
2402 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; | 2404 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; |
2403 } else if (metric == "connectionInfo") { | 2405 } else if (metric == "connectionInfo") { |
2404 feature = UseCounter::ChromeLoadTimesConnectionInfo; | 2406 feature = UseCounter::ChromeLoadTimesConnectionInfo; |
2405 } | 2407 } |
2406 UseCounter::count(frame(), feature); | 2408 UseCounter::count(frame(), feature); |
2407 } | 2409 } |
2408 | 2410 |
| 2411 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
| 2412 return m_inputMethodController.get(); |
| 2413 } |
| 2414 |
2409 } // namespace blink | 2415 } // namespace blink |
OLD | NEW |