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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 #include "public/web/WebConsoleMessage.h" | 189 #include "public/web/WebConsoleMessage.h" |
190 #include "public/web/WebDOMEvent.h" | 190 #include "public/web/WebDOMEvent.h" |
191 #include "public/web/WebDocument.h" | 191 #include "public/web/WebDocument.h" |
192 #include "public/web/WebFindOptions.h" | 192 #include "public/web/WebFindOptions.h" |
193 #include "public/web/WebFormElement.h" | 193 #include "public/web/WebFormElement.h" |
194 #include "public/web/WebFrameClient.h" | 194 #include "public/web/WebFrameClient.h" |
195 #include "public/web/WebFrameOwnerProperties.h" | 195 #include "public/web/WebFrameOwnerProperties.h" |
196 #include "public/web/WebHistoryItem.h" | 196 #include "public/web/WebHistoryItem.h" |
197 #include "public/web/WebIconURL.h" | 197 #include "public/web/WebIconURL.h" |
198 #include "public/web/WebInputElement.h" | 198 #include "public/web/WebInputElement.h" |
| 199 #include "public/web/WebInputMethodController.h" |
199 #include "public/web/WebKit.h" | 200 #include "public/web/WebKit.h" |
200 #include "public/web/WebNode.h" | 201 #include "public/web/WebNode.h" |
201 #include "public/web/WebPerformance.h" | 202 #include "public/web/WebPerformance.h" |
202 #include "public/web/WebPlugin.h" | 203 #include "public/web/WebPlugin.h" |
203 #include "public/web/WebPrintParams.h" | 204 #include "public/web/WebPrintParams.h" |
204 #include "public/web/WebPrintPresetOptions.h" | 205 #include "public/web/WebPrintPresetOptions.h" |
205 #include "public/web/WebRange.h" | 206 #include "public/web/WebRange.h" |
206 #include "public/web/WebScriptSource.h" | 207 #include "public/web/WebScriptSource.h" |
207 #include "public/web/WebSerializedScriptValue.h" | 208 #include "public/web/WebSerializedScriptValue.h" |
208 #include "public/web/WebTreeScopeType.h" | 209 #include "public/web/WebTreeScopeType.h" |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 | 1465 |
1465 WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, WebFrameClient* cli
ent) | 1466 WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, WebFrameClient* cli
ent) |
1466 : WebLocalFrame(scope) | 1467 : WebLocalFrame(scope) |
1467 , m_frameLoaderClientImpl(FrameLoaderClientImpl::create(this)) | 1468 , m_frameLoaderClientImpl(FrameLoaderClientImpl::create(this)) |
1468 , m_frameWidget(0) | 1469 , m_frameWidget(0) |
1469 , m_client(client) | 1470 , m_client(client) |
1470 , m_autofillClient(0) | 1471 , m_autofillClient(0) |
1471 , m_contentSettingsClient(0) | 1472 , m_contentSettingsClient(0) |
1472 , m_inputEventsScaleFactorForEmulation(1) | 1473 , m_inputEventsScaleFactorForEmulation(1) |
1473 , m_webDevToolsFrontend(0) | 1474 , m_webDevToolsFrontend(0) |
| 1475 , m_inputMethodController(new WebInputMethodControllerImpl(this)) |
1474 , m_selfKeepAlive(this) | 1476 , m_selfKeepAlive(this) |
1475 { | 1477 { |
1476 frameCount++; | 1478 frameCount++; |
1477 } | 1479 } |
1478 | 1480 |
1479 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, WebFrameClient
* client) | 1481 WebLocalFrameImpl::WebLocalFrameImpl(WebRemoteFrame* oldWebFrame, WebFrameClient
* client) |
1480 : WebLocalFrameImpl(oldWebFrame->inShadowTree() ? WebTreeScopeType::Shadow :
WebTreeScopeType::Document, client) | 1482 : WebLocalFrameImpl(oldWebFrame->inShadowTree() ? WebTreeScopeType::Shadow :
WebTreeScopeType::Document, client) |
1481 { | 1483 { |
1482 } | 1484 } |
1483 | 1485 |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 } else if (metric == "npnNegotiatedProtocol") { | 2241 } else if (metric == "npnNegotiatedProtocol") { |
2240 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; | 2242 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; |
2241 } else if (metric == "wasAlternateProtocolAvailable") { | 2243 } else if (metric == "wasAlternateProtocolAvailable") { |
2242 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; | 2244 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; |
2243 } else if (metric == "connectionInfo") { | 2245 } else if (metric == "connectionInfo") { |
2244 feature = UseCounter::ChromeLoadTimesConnectionInfo; | 2246 feature = UseCounter::ChromeLoadTimesConnectionInfo; |
2245 } | 2247 } |
2246 UseCounter::count(frame(), feature); | 2248 UseCounter::count(frame(), feature); |
2247 } | 2249 } |
2248 | 2250 |
| 2251 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const |
| 2252 { |
| 2253 return m_inputMethodController.get(); |
| 2254 } |
| 2255 |
2249 } // namespace blink | 2256 } // namespace blink |
OLD | NEW |