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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 7 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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 void StatePopped(PassRefPtr<SerializedScriptValue>); 309 void StatePopped(PassRefPtr<SerializedScriptValue>);
310 310
311 // FIXME: This shouldn't be public once LocalDOMWindow becomes 311 // FIXME: This shouldn't be public once LocalDOMWindow becomes
312 // ExecutionContext. 312 // ExecutionContext.
313 void ClearEventQueue(); 313 void ClearEventQueue();
314 314
315 void AcceptLanguagesChanged(); 315 void AcceptLanguagesChanged();
316 316
317 FloatSize GetViewportSize(IncludeScrollbarsInRect) const; 317 FloatSize GetViewportSize(IncludeScrollbarsInRect) const;
318 318
319 void SetHasLoadEventFired() { has_load_event_fired_ = true; }
320 bool HasLoadEventFired() { return has_load_event_fired_; }
321
319 protected: 322 protected:
320 // EventTarget overrides. 323 // EventTarget overrides.
321 void AddedEventListener(const AtomicString& event_type, 324 void AddedEventListener(const AtomicString& event_type,
322 RegisteredEventListener&) override; 325 RegisteredEventListener&) override;
323 void RemovedEventListener(const AtomicString& event_type, 326 void RemovedEventListener(const AtomicString& event_type,
324 const RegisteredEventListener&) override; 327 const RegisteredEventListener&) override;
325 328
326 // Protected DOMWindow overrides. 329 // Protected DOMWindow overrides.
327 void SchedulePostMessage(MessageEvent*, 330 void SchedulePostMessage(MessageEvent*,
328 PassRefPtr<SecurityOrigin> target, 331 PassRefPtr<SecurityOrigin> target,
(...skipping 10 matching lines...) Expand all
339 void Dispose(); 342 void Dispose();
340 343
341 void DispatchLoadEvent(); 344 void DispatchLoadEvent();
342 void ClearDocument(); 345 void ClearDocument();
343 346
344 Member<Document> document_; 347 Member<Document> document_;
345 Member<DOMVisualViewport> visual_viewport_; 348 Member<DOMVisualViewport> visual_viewport_;
346 TaskRunnerTimer<LocalDOMWindow> unused_preloads_timer_; 349 TaskRunnerTimer<LocalDOMWindow> unused_preloads_timer_;
347 350
348 bool should_print_when_finished_loading_; 351 bool should_print_when_finished_loading_;
352 bool has_load_event_fired_ = false;
349 353
350 mutable Member<Screen> screen_; 354 mutable Member<Screen> screen_;
351 mutable Member<History> history_; 355 mutable Member<History> history_;
352 mutable Member<BarProp> locationbar_; 356 mutable Member<BarProp> locationbar_;
353 mutable Member<BarProp> menubar_; 357 mutable Member<BarProp> menubar_;
354 mutable Member<BarProp> personalbar_; 358 mutable Member<BarProp> personalbar_;
355 mutable Member<BarProp> scrollbars_; 359 mutable Member<BarProp> scrollbars_;
356 mutable Member<BarProp> statusbar_; 360 mutable Member<BarProp> statusbar_;
357 mutable Member<BarProp> toolbar_; 361 mutable Member<BarProp> toolbar_;
358 mutable Member<Navigator> navigator_; 362 mutable Member<Navigator> navigator_;
(...skipping 23 matching lines...) Expand all
382 return status_; 386 return status_;
383 } 387 }
384 388
385 inline String LocalDOMWindow::defaultStatus() const { 389 inline String LocalDOMWindow::defaultStatus() const {
386 return default_status_; 390 return default_status_;
387 } 391 }
388 392
389 } // namespace blink 393 } // namespace blink
390 394
391 #endif // LocalDOMWindow_h 395 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698