OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file.#ifndef WebViewBase_h | 3 // found in the LICENSE file.#ifndef WebViewBase_h |
4 | 4 |
5 #ifndef WebLocalFrameBase_h | 5 #ifndef WebLocalFrameBase_h |
6 #define WebLocalFrameBase_h | 6 #define WebLocalFrameBase_h |
7 | 7 |
| 8 #include "core/CoreExport.h" |
8 #include "public/web/WebLocalFrame.h" | 9 #include "public/web/WebLocalFrame.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
| 13 class LocalFrame; |
| 14 |
12 // WebLocalFrameBase is a temporary class the provides a layer of abstraction | 15 // WebLocalFrameBase is a temporary class the provides a layer of abstraction |
13 // for WebLocalFrameImpl. Mehtods that are declared public in WebLocalFrameImpl | 16 // for WebLocalFrameImpl. Mehtods that are declared public in WebLocalFrameImpl |
14 // that are not overrides from WebLocalFrame will be declared pure virtual in | 17 // that are not overrides from WebLocalFrame will be declared pure virtual in |
15 // WebLocalFrameBase. Classes that then have a dependency on WebLocalFrameImpl | 18 // WebLocalFrameBase. Classes that then have a dependency on WebLocalFrameImpl |
16 // will then take a dependency on WebLocalFrameBase instead, so we can remove | 19 // will then take a dependency on WebLocalFrameBase instead, so we can remove |
17 // cyclic dependencies in web/ and move classes from web/ into core/ or | 20 // cyclic dependencies in web/ and move classes from web/ into core/ or |
18 // modules. | 21 // modules. |
19 // TODO(slangley): Remove this class once WebLocalFrameImpl is in core/. | 22 // TODO(slangley): Remove this class once WebLocalFrameImpl is in core/. |
20 class WebLocalFrameBase : public WebLocalFrame { | 23 class WebLocalFrameBase : public WebLocalFrame { |
| 24 public: |
| 25 CORE_EXPORT static WebLocalFrameBase* FromFrame(LocalFrame*); |
| 26 CORE_EXPORT static WebLocalFrameBase* FromFrame(LocalFrame&); |
| 27 |
21 protected: | 28 protected: |
22 explicit WebLocalFrameBase(WebTreeScopeType scope) : WebLocalFrame(scope) {} | 29 explicit WebLocalFrameBase(WebTreeScopeType scope) : WebLocalFrame(scope) {} |
23 }; | 30 }; |
24 } | 31 } |
25 | 32 |
26 #endif // WebLocalFrameBase_h | 33 #endif // WebLocalFrameBase_h |
OLD | NEW |