| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebViewFrameWidget_h | 5 #ifndef WebViewFrameWidget_h |
| 6 #define WebViewFrameWidget_h | 6 #define WebViewFrameWidget_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/wtf/Noncopyable.h" |
| 10 #include "platform/wtf/RefPtr.h" |
| 9 #include "web/WebFrameWidgetBase.h" | 11 #include "web/WebFrameWidgetBase.h" |
| 10 #include "web/WebInputMethodControllerImpl.h" | 12 #include "web/WebInputMethodControllerImpl.h" |
| 11 #include "web/WebLocalFrameImpl.h" | 13 #include "web/WebLocalFrameImpl.h" |
| 12 #include "wtf/Noncopyable.h" | |
| 13 #include "wtf/RefPtr.h" | |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class WebViewImpl; | 17 class WebViewImpl; |
| 18 class WebWidgetClient; | 18 class WebWidgetClient; |
| 19 | 19 |
| 20 // Shim class to help normalize the widget interfaces in the Blink public API. | 20 // Shim class to help normalize the widget interfaces in the Blink public API. |
| 21 // For OOPI, subframes have WebFrameWidgets for input and rendering. | 21 // For OOPI, subframes have WebFrameWidgets for input and rendering. |
| 22 // Unfortunately, the main frame still uses WebView's WebWidget for input and | 22 // Unfortunately, the main frame still uses WebView's WebWidget for input and |
| 23 // rendering. This results in complex code, since there are two different | 23 // rendering. This results in complex code, since there are two different |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 WebWidgetClient* m_client; | 111 WebWidgetClient* m_client; |
| 112 RefPtr<WebViewImpl> m_webView; | 112 RefPtr<WebViewImpl> m_webView; |
| 113 Persistent<WebLocalFrameImpl> m_mainFrame; | 113 Persistent<WebLocalFrameImpl> m_mainFrame; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // WebViewFrameWidget_h | 118 #endif // WebViewFrameWidget_h |
| OLD | NEW |