OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; | 565 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; |
566 | 566 |
567 // Returns the WebInputMethodController associated with this local frame. | 567 // Returns the WebInputMethodController associated with this local frame. |
568 virtual WebInputMethodController* GetInputMethodController() = 0; | 568 virtual WebInputMethodController* GetInputMethodController() = 0; |
569 | 569 |
570 // Loading ------------------------------------------------------------------ | 570 // Loading ------------------------------------------------------------------ |
571 // Creates and returns a loader. This function can be called only when this | 571 // Creates and returns a loader. This function can be called only when this |
572 // frame is attached to a document. | 572 // frame is attached to a document. |
573 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; | 573 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
574 | 574 |
| 575 // Geometry ----------------------------------------------------------------- |
| 576 |
| 577 // If set to false, do not draw scrollbars on this frame's view. |
| 578 virtual void SetCanHaveScrollbars(bool) = 0; |
| 579 |
575 protected: | 580 protected: |
576 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 581 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
577 | 582 |
578 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 583 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
579 // to call these on a WebLocalFrame. | 584 // to call these on a WebLocalFrame. |
580 bool IsWebLocalFrame() const override = 0; | 585 bool IsWebLocalFrame() const override = 0; |
581 WebLocalFrame* ToWebLocalFrame() override = 0; | 586 WebLocalFrame* ToWebLocalFrame() override = 0; |
582 bool IsWebRemoteFrame() const override = 0; | 587 bool IsWebRemoteFrame() const override = 0; |
583 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 588 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
584 }; | 589 }; |
585 | 590 |
586 } // namespace blink | 591 } // namespace blink |
587 | 592 |
588 #endif // WebLocalFrame_h | 593 #endif // WebLocalFrame_h |
OLD | NEW |