Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2918943002: Move SetCanHaveScrollbars method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0; 562 virtual base::SingleThreadTaskRunner* UnthrottledTaskRunner() = 0;
563 563
564 // Returns the WebInputMethodController associated with this local frame. 564 // Returns the WebInputMethodController associated with this local frame.
565 virtual WebInputMethodController* GetInputMethodController() = 0; 565 virtual WebInputMethodController* GetInputMethodController() = 0;
566 566
567 // Loading ------------------------------------------------------------------ 567 // Loading ------------------------------------------------------------------
568 // Creates and returns a loader. This function can be called only when this 568 // Creates and returns a loader. This function can be called only when this
569 // frame is attached to a document. 569 // frame is attached to a document.
570 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; 570 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0;
571 571
572 // Geometry -----------------------------------------------------------------
573
574 // If set to false, do not draw scrollbars on this frame's view.
575 virtual void SetCanHaveScrollbars(bool) = 0;
576
572 protected: 577 protected:
573 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 578 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
574 579
575 // Inherited from WebFrame, but intentionally hidden: it never makes sense 580 // Inherited from WebFrame, but intentionally hidden: it never makes sense
576 // to call these on a WebLocalFrame. 581 // to call these on a WebLocalFrame.
577 bool IsWebLocalFrame() const override = 0; 582 bool IsWebLocalFrame() const override = 0;
578 WebLocalFrame* ToWebLocalFrame() override = 0; 583 WebLocalFrame* ToWebLocalFrame() override = 0;
579 bool IsWebRemoteFrame() const override = 0; 584 bool IsWebRemoteFrame() const override = 0;
580 WebRemoteFrame* ToWebRemoteFrame() override = 0; 585 WebRemoteFrame* ToWebRemoteFrame() override = 0;
581 }; 586 };
582 587
583 } // namespace blink 588 } // namespace blink
584 589
585 #endif // WebLocalFrame_h 590 #endif // WebLocalFrame_h
OLDNEW
« content/renderer/render_view_impl.cc ('K') | « third_party/WebKit/public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698