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

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

Issue 2923433002: Move ExecuteScript 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ----------------------------------------------------------------- 575 // Geometry -----------------------------------------------------------------
576 576
577 // If set to false, do not draw scrollbars on this frame's view. 577 // If set to false, do not draw scrollbars on this frame's view.
578 virtual void SetCanHaveScrollbars(bool) = 0; 578 virtual void SetCanHaveScrollbars(bool) = 0;
579 579
580 // Scripting ----------------------------------------------------------
581
582 // Executes script in the context of the current page.
583 virtual void ExecuteScript(const WebScriptSource&) = 0;
dcheng 2017/06/04 10:37:22 Since there's already a scripting section on line
Łukasz Anforowicz 2017/06/05 17:10:57 Ooops. Thanks for catching this.
584
580 protected: 585 protected:
581 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 586 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
582 587
583 // Inherited from WebFrame, but intentionally hidden: it never makes sense 588 // Inherited from WebFrame, but intentionally hidden: it never makes sense
584 // to call these on a WebLocalFrame. 589 // to call these on a WebLocalFrame.
585 bool IsWebLocalFrame() const override = 0; 590 bool IsWebLocalFrame() const override = 0;
586 WebLocalFrame* ToWebLocalFrame() override = 0; 591 WebLocalFrame* ToWebLocalFrame() override = 0;
587 bool IsWebRemoteFrame() const override = 0; 592 bool IsWebRemoteFrame() const override = 0;
588 WebRemoteFrame* ToWebRemoteFrame() override = 0; 593 WebRemoteFrame* ToWebRemoteFrame() override = 0;
589 }; 594 };
590 595
591 } // namespace blink 596 } // namespace blink
592 597
593 #endif // WebLocalFrame_h 598 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698