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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Respond to review / fix compile. Created 4 years 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 } 854 }
855 } 855 }
856 856
857 return layers ? layers->toPrettyJSONString() : String(); 857 return layers ? layers->toPrettyJSONString() : String();
858 } 858 }
859 859
860 bool LocalFrame::shouldThrottleRendering() const { 860 bool LocalFrame::shouldThrottleRendering() const {
861 return view() && view()->shouldThrottleRendering(); 861 return view() && view()->shouldThrottleRendering();
862 } 862 }
863 863
864 void LocalFrame::onAppInstalled() {
865 m_domWindow->dispatchEvent(Event::create(EventTypeNames::appinstalled));
866 }
867
864 inline LocalFrame::LocalFrame(FrameLoaderClient* client, 868 inline LocalFrame::LocalFrame(FrameLoaderClient* client,
865 FrameHost* host, 869 FrameHost* host,
866 FrameOwner* owner, 870 FrameOwner* owner,
867 InterfaceProvider* interfaceProvider, 871 InterfaceProvider* interfaceProvider,
868 InterfaceRegistry* interfaceRegistry) 872 InterfaceRegistry* interfaceRegistry)
869 : Frame(client, host, owner), 873 : Frame(client, host, owner),
870 m_frameScheduler(page()->chromeClient().createFrameScheduler( 874 m_frameScheduler(page()->chromeClient().createFrameScheduler(
871 client->frameBlameContext())), 875 client->frameBlameContext())),
872 m_loader(this), 876 m_loader(this),
873 m_navigationScheduler(NavigationScheduler::create(this)), 877 m_navigationScheduler(NavigationScheduler::create(this)),
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 933 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
930 m_frame->client()->frameBlameContext()->Enter(); 934 m_frame->client()->frameBlameContext()->Enter();
931 } 935 }
932 936
933 ScopedFrameBlamer::~ScopedFrameBlamer() { 937 ScopedFrameBlamer::~ScopedFrameBlamer() {
934 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 938 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
935 m_frame->client()->frameBlameContext()->Leave(); 939 m_frame->client()->frameBlameContext()->Leave();
936 } 940 }
937 941
938 } // namespace blink 942 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698