OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 PerformanceMonitor* GetPerformanceMonitor() { return performance_monitor_; } | 231 PerformanceMonitor* GetPerformanceMonitor() { return performance_monitor_; } |
232 | 232 |
233 // Convenience function to allow loading image placeholders for the request if | 233 // Convenience function to allow loading image placeholders for the request if |
234 // either the flag in Settings() for using image placeholders is set, or if | 234 // either the flag in Settings() for using image placeholders is set, or if |
235 // the embedder decides that Client Lo-Fi should be used for this request. | 235 // the embedder decides that Client Lo-Fi should be used for this request. |
236 void MaybeAllowImagePlaceholder(FetchParameters&) const; | 236 void MaybeAllowImagePlaceholder(FetchParameters&) const; |
237 | 237 |
238 std::unique_ptr<WebURLLoader> CreateURLLoader(); | 238 std::unique_ptr<WebURLLoader> CreateURLLoader(); |
239 | 239 |
| 240 // This sets the is_inert_ flag and also recurses through this frame's |
| 241 // subtree, updating the inert bit on all descendant frames. |
| 242 void SetIsInert(bool inert); |
| 243 bool IsInert() const { return is_inert_; } |
| 244 |
240 using FrameInitCallback = void (*)(LocalFrame*); | 245 using FrameInitCallback = void (*)(LocalFrame*); |
241 // Allows for the registration of a callback that is invoked whenever a new | 246 // Allows for the registration of a callback that is invoked whenever a new |
242 // LocalFrame is initialized. Callbacks are executed in the order that they | 247 // LocalFrame is initialized. Callbacks are executed in the order that they |
243 // were added using registerInitializationCallback, and there are no checks | 248 // were added using registerInitializationCallback, and there are no checks |
244 // for adding a callback multiple times. | 249 // for adding a callback multiple times. |
245 static void RegisterInitializationCallback(FrameInitCallback); | 250 static void RegisterInitializationCallback(FrameInitCallback); |
246 | 251 |
247 private: | 252 private: |
248 friend class FrameNavigationDisabler; | 253 friend class FrameNavigationDisabler; |
249 | 254 |
(...skipping 30 matching lines...) Expand all Loading... |
280 const Member<FrameConsole> console_; | 285 const Member<FrameConsole> console_; |
281 const Member<InputMethodController> input_method_controller_; | 286 const Member<InputMethodController> input_method_controller_; |
282 | 287 |
283 int navigation_disable_count_; | 288 int navigation_disable_count_; |
284 | 289 |
285 float page_zoom_factor_; | 290 float page_zoom_factor_; |
286 float text_zoom_factor_; | 291 float text_zoom_factor_; |
287 | 292 |
288 bool in_view_source_mode_; | 293 bool in_view_source_mode_; |
289 | 294 |
| 295 bool is_inert_; |
| 296 |
290 Member<CoreProbeSink> probe_sink_; | 297 Member<CoreProbeSink> probe_sink_; |
291 Member<PerformanceMonitor> performance_monitor_; | 298 Member<PerformanceMonitor> performance_monitor_; |
292 | 299 |
293 InterfaceProvider* const interface_provider_; | 300 InterfaceProvider* const interface_provider_; |
294 InterfaceRegistry* const interface_registry_; | 301 InterfaceRegistry* const interface_registry_; |
295 }; | 302 }; |
296 | 303 |
297 inline FrameLoader& LocalFrame::Loader() const { | 304 inline FrameLoader& LocalFrame::Loader() const { |
298 return loader_; | 305 return loader_; |
299 } | 306 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 explicit ScopedFrameBlamer(LocalFrame*); | 393 explicit ScopedFrameBlamer(LocalFrame*); |
387 ~ScopedFrameBlamer(); | 394 ~ScopedFrameBlamer(); |
388 | 395 |
389 private: | 396 private: |
390 Member<LocalFrame> frame_; | 397 Member<LocalFrame> frame_; |
391 }; | 398 }; |
392 | 399 |
393 } // namespace blink | 400 } // namespace blink |
394 | 401 |
395 #endif // LocalFrame_h | 402 #endif // LocalFrame_h |
OLD | NEW |