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

Side by Side Diff: third_party/WebKit/Source/modules/geolocation/NavigatorGeolocation.cpp

Issue 1919153002: Tidy up WebGeolocationController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 2000 Harri Porten (porten@kde.org)
3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org) 3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org)
4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org) 4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 Geolocation* NavigatorGeolocation::geolocation(Navigator& navigator) 52 Geolocation* NavigatorGeolocation::geolocation(Navigator& navigator)
53 { 53 {
54 return NavigatorGeolocation::from(navigator).geolocation(); 54 return NavigatorGeolocation::from(navigator).geolocation();
55 } 55 }
56 56
57 Geolocation* NavigatorGeolocation::geolocation() 57 Geolocation* NavigatorGeolocation::geolocation()
58 { 58 {
59 if (!m_geolocation && frame()) 59 if (!m_geolocation && frame())
60 m_geolocation = Geolocation::create(frame()->document()); 60 m_geolocation = Geolocation::create(frame()->document());
61 return m_geolocation.get(); 61 return m_geolocation;
62 } 62 }
63 63
64 DEFINE_TRACE(NavigatorGeolocation) 64 DEFINE_TRACE(NavigatorGeolocation)
65 { 65 {
66 visitor->trace(m_geolocation); 66 visitor->trace(m_geolocation);
67 Supplement<Navigator>::trace(visitor); 67 Supplement<Navigator>::trace(visitor);
68 DOMWindowProperty::trace(visitor); 68 DOMWindowProperty::trace(visitor);
69 } 69 }
70 70
71 } // namespace blink 71 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698