| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 280 |
| 281 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl | 281 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl |
| 282 // that hosts the plugin. If the provided node is a plugin, then it runs its | 282 // that hosts the plugin. If the provided node is a plugin, then it runs its |
| 283 // WebPluginContainerImpl. | 283 // WebPluginContainerImpl. |
| 284 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We
bNode&); | 284 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We
bNode&); |
| 285 | 285 |
| 286 WebViewImpl* viewImpl() const; | 286 WebViewImpl* viewImpl() const; |
| 287 | 287 |
| 288 FrameView* frameView() const { return frame() ? frame()->view() : 0; } | 288 FrameView* frameView() const { return frame() ? frame()->view() : 0; } |
| 289 | 289 |
| 290 WebDevToolsAgentImpl* devToolsAgentImpl() const; | 290 WebDevToolsAgentImpl* devToolsAgentImpl() const { return m_devToolsAgent.get
(); } |
| 291 | 291 |
| 292 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 292 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
| 293 // may return 0 if there is no corresponding data source. | 293 // may return 0 if there is no corresponding data source. |
| 294 WebDataSourceImpl* dataSourceImpl() const; | 294 WebDataSourceImpl* dataSourceImpl() const; |
| 295 WebDataSourceImpl* provisionalDataSourceImpl() const; | 295 WebDataSourceImpl* provisionalDataSourceImpl() const; |
| 296 | 296 |
| 297 // Returns which frame has an active match. This function should only be | 297 // Returns which frame has an active match. This function should only be |
| 298 // called on the main frame, as it is the only frame keeping track. Returned | 298 // called on the main frame, as it is the only frame keeping track. Returned |
| 299 // value can be 0 if no frame has an active match. | 299 // value can be 0 if no frame has an active match. |
| 300 WebLocalFrameImpl* activeMatchFrame() const; | 300 WebLocalFrameImpl* activeMatchFrame() const; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 // cleared upon close(). | 402 // cleared upon close(). |
| 403 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 403 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 404 #endif | 404 #endif |
| 405 }; | 405 }; |
| 406 | 406 |
| 407 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 407 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 408 | 408 |
| 409 } // namespace blink | 409 } // namespace blink |
| 410 | 410 |
| 411 #endif | 411 #endif |
| OLD | NEW |