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

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

Issue 2936423003: Move Get/SetScrollOffset methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: Added TODOs as suggested by dcheng@ (this patchset also accidentally includes a rebase...). 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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 virtual WebInputMethodController* GetInputMethodController() = 0; 681 virtual WebInputMethodController* GetInputMethodController() = 0;
682 682
683 // Loading ------------------------------------------------------------------ 683 // Loading ------------------------------------------------------------------
684 684
685 // Creates and returns a loader. This function can be called only when this 685 // Creates and returns a loader. This function can be called only when this
686 // frame is attached to a document. 686 // frame is attached to a document.
687 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; 687 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0;
688 688
689 // Geometry ----------------------------------------------------------------- 689 // Geometry -----------------------------------------------------------------
690 690
691 // The scroll offset from the top-left corner of the frame in pixels.
692 virtual WebSize GetScrollOffset() const = 0;
693 virtual void SetScrollOffset(const WebSize&) = 0;
694
691 // If set to false, do not draw scrollbars on this frame's view. 695 // If set to false, do not draw scrollbars on this frame's view.
692 virtual void SetCanHaveScrollbars(bool) = 0; 696 virtual void SetCanHaveScrollbars(bool) = 0;
693 697
694 // Printing ------------------------------------------------------------ 698 // Printing ------------------------------------------------------------
695 699
696 // Reformats the WebFrame for printing. WebPrintParams specifies the printable 700 // Reformats the WebFrame for printing. WebPrintParams specifies the printable
697 // content size, paper size, printable area size, printer DPI and print 701 // content size, paper size, printable area size, printer DPI and print
698 // scaling option. If constrainToNode node is specified, then only the given 702 // scaling option. If constrainToNode node is specified, then only the given
699 // node is printed (for now only plugins are supported), instead of the entire 703 // node is printed (for now only plugins are supported), instead of the entire
700 // frame. 704 // frame.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 // to call these on a WebLocalFrame. 749 // to call these on a WebLocalFrame.
746 bool IsWebLocalFrame() const override = 0; 750 bool IsWebLocalFrame() const override = 0;
747 WebLocalFrame* ToWebLocalFrame() override = 0; 751 WebLocalFrame* ToWebLocalFrame() override = 0;
748 bool IsWebRemoteFrame() const override = 0; 752 bool IsWebRemoteFrame() const override = 0;
749 WebRemoteFrame* ToWebRemoteFrame() override = 0; 753 WebRemoteFrame* ToWebRemoteFrame() override = 0;
750 }; 754 };
751 755
752 } // namespace blink 756 } // namespace blink
753 757
754 #endif // WebLocalFrame_h 758 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698