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

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

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Daniel Created 5 years, 2 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebFrameOwnerProperties_h
6 #define WebFrameOwnerProperties_h
7
8 namespace blink {
9
10 struct WebFrameOwnerProperties {
11 enum class ScrollingMode {
12 Auto,
13 AlwaysOff,
14 AlwaysOn,
15 Last = AlwaysOn
16 };
17
18 ScrollingMode scrollingMode;
19 int marginWidth;
20 int marginHeight;
21
22 WebFrameOwnerProperties()
23 : scrollingMode(ScrollingMode::Auto)
24 , marginWidth(-1)
25 , marginHeight(-1)
26 {
27 }
28
29 WebFrameOwnerProperties(ScrollingMode scrollingMode, int marginWidth, int ma rginHeight)
30 : scrollingMode(scrollingMode)
31 , marginWidth(marginWidth)
32 , marginHeight(marginHeight)
33 {
34 }
35
36 #if INSIDE_BLINK
37 WebFrameOwnerProperties(ScrollbarMode scrollingMode, int marginWidth, int ma rginHeight)
38 : WebFrameOwnerProperties(static_cast<ScrollingMode>(scrollingMode), mar ginWidth, marginHeight)
dcheng 2015/10/14 07:20:43 I don't think anyone else actually calls this cons
lazyboy 2015/10/14 20:05:30 Done.
39 {
40 }
41 #endif
42 };
43
44 } // namespace blink
45
46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698