| 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 "core/CoreExport.h" |
| 9 #include "core/frame/WebFrameWidgetBase.h" |
| 9 #include "public/web/WebLocalFrame.h" | 10 #include "public/web/WebLocalFrame.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class FrameOwner; | 14 class FrameOwner; |
| 14 class FrameView; | 15 class FrameView; |
| 15 class LocalFrame; | 16 class LocalFrame; |
| 16 class Node; | 17 class Node; |
| 17 class Page; | 18 class Page; |
| 18 class TextFinder; | 19 class TextFinder; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 virtual void SetClient(WebFrameClient*) = 0; | 42 virtual void SetClient(WebFrameClient*) = 0; |
| 42 virtual WebTextCheckClient* TextCheckClient() const = 0; | 43 virtual WebTextCheckClient* TextCheckClient() const = 0; |
| 43 virtual void SetContextMenuNode(Node*) = 0; | 44 virtual void SetContextMenuNode(Node*) = 0; |
| 44 virtual void ClearContextMenuNode() = 0; | 45 virtual void ClearContextMenuNode() = 0; |
| 45 virtual LocalFrame* GetFrame() const = 0; | 46 virtual LocalFrame* GetFrame() const = 0; |
| 46 virtual FrameView* GetFrameView() const = 0; | 47 virtual FrameView* GetFrameView() const = 0; |
| 47 virtual void InitializeCoreFrame(Page&, | 48 virtual void InitializeCoreFrame(Page&, |
| 48 FrameOwner*, | 49 FrameOwner*, |
| 49 const AtomicString& name) = 0; | 50 const AtomicString& name) = 0; |
| 50 virtual TextFinder& EnsureTextFinder() = 0; | 51 virtual TextFinder& EnsureTextFinder() = 0; |
| 52 virtual WebFrameWidgetBase* FrameWidget() const = 0; |
| 51 virtual void SetFrameWidget(WebFrameWidgetBase*) = 0; | 53 virtual void SetFrameWidget(WebFrameWidgetBase*) = 0; |
| 52 virtual WebDevToolsAgentImpl* DevToolsAgentImpl() const = 0; | 54 virtual WebDevToolsAgentImpl* DevToolsAgentImpl() const = 0; |
| 53 | 55 |
| 54 DEFINE_INLINE_VIRTUAL_TRACE() {} | 56 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 55 | 57 |
| 56 protected: | 58 protected: |
| 57 explicit WebLocalFrameBase(WebTreeScopeType scope) : WebLocalFrame(scope) {} | 59 explicit WebLocalFrameBase(WebTreeScopeType scope) : WebLocalFrame(scope) {} |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 DEFINE_TYPE_CASTS(WebLocalFrameBase, | 62 DEFINE_TYPE_CASTS(WebLocalFrameBase, |
| 61 WebFrame, | 63 WebFrame, |
| 62 frame, | 64 frame, |
| 63 frame->IsWebLocalFrame(), | 65 frame->IsWebLocalFrame(), |
| 64 frame.IsWebLocalFrame()); | 66 frame.IsWebLocalFrame()); |
| 65 | 67 |
| 66 } // namespace blink | 68 } // namespace blink |
| 67 | 69 |
| 68 #endif // WebLocalFrameBase_h | 70 #endif // WebLocalFrameBase_h |
| OLD | NEW |