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

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyPageHolder.h

Issue 2258523006: Convert Settings::rootLayerScrolls to RuntimeEnabledFeatures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add RAII-style helper to toggle REF. Rebase. Created 4 years, 3 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 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 namespace blink { 42 namespace blink {
43 43
44 class Document; 44 class Document;
45 class LocalFrame; 45 class LocalFrame;
46 class FrameView; 46 class FrameView;
47 class IntSize; 47 class IntSize;
48 class Settings; 48 class Settings;
49 49
50 typedef void (*FrameSettingOverrideFunction)(Settings&); 50 typedef void (*FrameSettingOverrideFunction)(Settings&);
51 51
52 extern void RootLayerScrollsFrameSettingOverride(Settings&);
53
54 // Creates a dummy Page, LocalFrame, and FrameView whose clients are all no-op. 52 // Creates a dummy Page, LocalFrame, and FrameView whose clients are all no-op.
55 // 53 //
56 // This class can be used when you write unit tests for components which do not work correctly without layoutObjects. 54 // This class can be used when you write unit tests for components which do not work correctly without layoutObjects.
57 // To make sure the layoutObjects are created, you need to call |frameView().lay out()| after you add nodes into 55 // To make sure the layoutObjects are created, you need to call |frameView().lay out()| after you add nodes into
58 // |document()|. 56 // |document()|.
59 // 57 //
60 // Since DummyPageHolder stores empty clients in it, it must outlive the Page, L ocalFrame, FrameView and any other objects 58 // Since DummyPageHolder stores empty clients in it, it must outlive the Page, L ocalFrame, FrameView and any other objects
61 // created by it. DummyPageHolder's destructor ensures this condition by checkin g remaining references to the LocalFrame. 59 // created by it. DummyPageHolder's destructor ensures this condition by checkin g remaining references to the LocalFrame.
62 60
63 class DummyPageHolder { 61 class DummyPageHolder {
(...skipping 17 matching lines...) Expand all
81 79
82 Persistent<Page> m_page; 80 Persistent<Page> m_page;
83 Persistent<LocalFrame> m_frame; 81 Persistent<LocalFrame> m_frame;
84 82
85 Persistent<FrameLoaderClient> m_frameLoaderClient; 83 Persistent<FrameLoaderClient> m_frameLoaderClient;
86 }; 84 };
87 85
88 } // namespace blink 86 } // namespace blink
89 87
90 #endif // DummyPageHolder_h 88 #endif // DummyPageHolder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698