| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 WebMouseEvent createMouseEvent(WebInputEvent::Type, WebMouseEvent::Button, const
IntPoint&, int modifiers); | 82 WebMouseEvent createMouseEvent(WebInputEvent::Type, WebMouseEvent::Button, const
IntPoint&, int modifiers); |
| 83 | 83 |
| 84 // Calls WebRemoteFrame::createLocalChild, but with some arguments prefilled | 84 // Calls WebRemoteFrame::createLocalChild, but with some arguments prefilled |
| 85 // with default test values (i.e. with a default |client| or |properties| and/or | 85 // with default test values (i.e. with a default |client| or |properties| and/or |
| 86 // with a precalculated |uniqueName|). | 86 // with a precalculated |uniqueName|). |
| 87 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent, const WebString& nam
e = WebString(), WebFrameClient* = nullptr, WebWidgetClient* = nullptr, WebFrame
* previousSibling = nullptr, const WebFrameOwnerProperties& = WebFrameOwnerPrope
rties()); | 87 WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent, const WebString& nam
e = WebString(), WebFrameClient* = nullptr, WebWidgetClient* = nullptr, WebFrame
* previousSibling = nullptr, const WebFrameOwnerProperties& = WebFrameOwnerPrope
rties()); |
| 88 WebRemoteFrameImpl* createRemoteChild(WebRemoteFrame* parent, WebRemoteFrameClie
nt*, const WebString& name = WebString()); | 88 WebRemoteFrameImpl* createRemoteChild(WebRemoteFrame* parent, WebRemoteFrameClie
nt*, const WebString& name = WebString()); |
| 89 | 89 |
| 90 // Helpers for unit tests with parameterized WebSettings overrides. | 90 // Helpers for unit tests with parameterized WebSettings overrides. |
| 91 typedef void (*SettingOverrideFunction)(WebSettings*); | 91 typedef void (*SettingOverrideFunction)(WebSettings*); |
| 92 void DefaultSettingOverride(WebSettings*); | |
| 93 void RootLayerScrollsSettingOverride(WebSettings*); | |
| 94 class SettingOverrider { | 92 class SettingOverrider { |
| 95 public: | 93 public: |
| 96 virtual void overrideSettings(WebSettings*) = 0; | 94 virtual void overrideSettings(WebSettings*) = 0; |
| 97 }; | 95 }; |
| 98 | 96 |
| 99 // Forces to use mocked overlay scrollbars instead of the default native theme s
crollbars to avoid | 97 // Forces to use mocked overlay scrollbars instead of the default native theme s
crollbars to avoid |
| 100 // crash in Chromium code when it tries to load UI resources that are not availa
ble when running | 98 // crash in Chromium code when it tries to load UI resources that are not availa
ble when running |
| 101 // blink unit tests, and to ensure consistent layout regardless of differences b
etween scrollbar themes. | 99 // blink unit tests, and to ensure consistent layout regardless of differences b
etween scrollbar themes. |
| 102 // WebViewHelper includes this, so this is only needed if a test doesn't use Web
ViewHelper or the test | 100 // WebViewHelper includes this, so this is only needed if a test doesn't use Web
ViewHelper or the test |
| 103 // needs a bigger scope of mock scrollbar settings than the scope of WebViewHelp
er. | 101 // needs a bigger scope of mock scrollbar settings than the scope of WebViewHelp
er. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 WebDOMMessageEvent) override { } | 238 WebDOMMessageEvent) override { } |
| 241 | 239 |
| 242 private: | 240 private: |
| 243 Persistent<WebRemoteFrameImpl> const m_frame; | 241 Persistent<WebRemoteFrameImpl> const m_frame; |
| 244 }; | 242 }; |
| 245 | 243 |
| 246 } // namespace FrameTestHelpers | 244 } // namespace FrameTestHelpers |
| 247 } // namespace blink | 245 } // namespace blink |
| 248 | 246 |
| 249 #endif // FrameTestHelpers_h | 247 #endif // FrameTestHelpers_h |
| OLD | NEW |