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

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

Issue 2122083002: Move CSS3 Paged Media interface into WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Notify the frame that the screen orientation has changed. 143 // Notify the frame that the screen orientation has changed.
144 virtual void sendOrientationChangeEvent() = 0; 144 virtual void sendOrientationChangeEvent() = 0;
145 145
146 146
147 // Printing ------------------------------------------------------------ 147 // Printing ------------------------------------------------------------
148 148
149 // Returns true on success and sets the out parameter to the print preset op tions for the document. 149 // Returns true on success and sets the out parameter to the print preset op tions for the document.
150 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOp tions*) = 0; 150 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOp tions*) = 0;
151 151
152 152
Lei Zhang 2016/07/06 17:59:16 extra blank line?
dcheng 2016/07/06 21:41:05 There's usually two lines between logical blocks o
153 // CSS3 Paged Media ----------------------------------------------------
154
155 // Returns true if page box (margin boxes and page borders) is visible.
156 virtual bool isPageBoxVisible(int pageIndex) = 0;
157
158 // Returns true if the page style has custom size information.
159 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0;
160
161 // Returns the preferred page size and margins in pixels, assuming 96
162 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
163 // marginLeft must be initialized to the default values that are used if
164 // auto is specified.
165 virtual void pageSizeAndMarginsInPixels(int pageIndex,
166 WebSize& pageSize,
167 int& marginTop,
168 int& marginRight,
169 int& marginBottom,
170 int& marginLeft) = 0;
171
172 // Returns the value for a page property that is only defined when printing.
173 // printBegin must have been called before this method.
174 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0;
175
176
153 // Scripting -------------------------------------------------------------- 177 // Scripting --------------------------------------------------------------
154 // Executes script in the context of the current page and returns the value 178 // Executes script in the context of the current page and returns the value
155 // that the script evaluated to with callback. Script execution can be 179 // that the script evaluated to with callback. Script execution can be
156 // suspend. 180 // suspend.
157 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&, 181 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&,
158 bool userGesture, WebScriptExecutionCallback*) = 0; 182 bool userGesture, WebScriptExecutionCallback*) = 0;
159 183
160 // worldID must be > 0 (as 0 represents the main world). 184 // worldID must be > 0 (as 0 represents the main world).
161 // worldID must be < EmbedderWorldIdLimit, high number used internally. 185 // worldID must be < EmbedderWorldIdLimit, high number used internally.
162 virtual void requestExecuteScriptInIsolatedWorld( 186 virtual void requestExecuteScriptInIsolatedWorld(
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // to call these on a WebLocalFrame. 374 // to call these on a WebLocalFrame.
351 bool isWebLocalFrame() const override = 0; 375 bool isWebLocalFrame() const override = 0;
352 WebLocalFrame* toWebLocalFrame() override = 0; 376 WebLocalFrame* toWebLocalFrame() override = 0;
353 bool isWebRemoteFrame() const override = 0; 377 bool isWebRemoteFrame() const override = 0;
354 WebRemoteFrame* toWebRemoteFrame() override = 0; 378 WebRemoteFrame* toWebRemoteFrame() override = 0;
355 }; 379 };
356 380
357 } // namespace blink 381 } // namespace blink
358 382
359 #endif // WebLocalFrame_h 383 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « 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