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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Fix up some includes. 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #include "core/page/FocusController.h" 150 #include "core/page/FocusController.h"
151 #include "core/page/FrameTree.h" 151 #include "core/page/FrameTree.h"
152 #include "core/page/Page.h" 152 #include "core/page/Page.h"
153 #include "core/page/PrintContext.h" 153 #include "core/page/PrintContext.h"
154 #include "core/paint/PaintLayer.h" 154 #include "core/paint/PaintLayer.h"
155 #include "core/paint/TransformRecorder.h" 155 #include "core/paint/TransformRecorder.h"
156 #include "core/style/StyleInheritedData.h" 156 #include "core/style/StyleInheritedData.h"
157 #include "core/timing/DOMWindowPerformance.h" 157 #include "core/timing/DOMWindowPerformance.h"
158 #include "core/timing/Performance.h" 158 #include "core/timing/Performance.h"
159 #include "modules/app_banner/AppBannerController.h" 159 #include "modules/app_banner/AppBannerController.h"
160 #include "modules/installation/InstallationServiceImpl.h"
160 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h" 161 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h"
161 #include "platform/ScriptForbiddenScope.h" 162 #include "platform/ScriptForbiddenScope.h"
162 #include "platform/UserGestureIndicator.h" 163 #include "platform/UserGestureIndicator.h"
163 #include "platform/WebFrameScheduler.h" 164 #include "platform/WebFrameScheduler.h"
164 #include "platform/clipboard/ClipboardUtilities.h" 165 #include "platform/clipboard/ClipboardUtilities.h"
165 #include "platform/fonts/FontCache.h" 166 #include "platform/fonts/FontCache.h"
166 #include "platform/graphics/GraphicsContext.h" 167 #include "platform/graphics/GraphicsContext.h"
167 #include "platform/graphics/GraphicsLayerClient.h" 168 #include "platform/graphics/GraphicsLayerClient.h"
168 #include "platform/graphics/paint/ClipRecorder.h" 169 #include "platform/graphics/paint/ClipRecorder.h"
169 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" 170 #include "platform/graphics/paint/DisplayItemCacheSkipper.h"
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 !parent() && !opener() && 1569 !parent() && !opener() &&
1569 frame()->settings()->shouldReuseGlobalForUnownedMainFrame()) { 1570 frame()->settings()->shouldReuseGlobalForUnownedMainFrame()) {
1570 frame()->document()->getSecurityOrigin()->grantUniversalAccess(); 1571 frame()->document()->getSecurityOrigin()->grantUniversalAccess();
1571 } 1572 }
1572 1573
1573 // TODO(dominickn): This interface should be document-scoped rather than 1574 // TODO(dominickn): This interface should be document-scoped rather than
1574 // frame-scoped, as the resulting banner event is dispatched to 1575 // frame-scoped, as the resulting banner event is dispatched to
1575 // frame()->document(). 1576 // frame()->document().
1576 frame()->interfaceRegistry()->addInterface(WTF::bind( 1577 frame()->interfaceRegistry()->addInterface(WTF::bind(
1577 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame()))); 1578 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame())));
1579
1580 frame()->interfaceRegistry()->addInterface(WTF::bind(
1581 &InstallationServiceImpl::create, wrapWeakPersistent(frame())));
1578 } 1582 }
1579 } 1583 }
1580 1584
1581 LocalFrame* WebLocalFrameImpl::createChildFrame( 1585 LocalFrame* WebLocalFrameImpl::createChildFrame(
1582 const FrameLoadRequest& request, 1586 const FrameLoadRequest& request,
1583 const AtomicString& name, 1587 const AtomicString& name,
1584 HTMLFrameOwnerElement* ownerElement) { 1588 HTMLFrameOwnerElement* ownerElement) {
1585 DCHECK(m_client); 1589 DCHECK(m_client);
1586 TRACE_EVENT0("blink", "WebLocalFrameImpl::createChildframe"); 1590 TRACE_EVENT0("blink", "WebLocalFrameImpl::createChildframe");
1587 WebTreeScopeType scope = frame()->document() == ownerElement->treeScope() 1591 WebTreeScopeType scope = frame()->document() == ownerElement->treeScope()
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 ->frameScheduler() 2361 ->frameScheduler()
2358 ->unthrottledTaskRunner() 2362 ->unthrottledTaskRunner()
2359 ->toSingleThreadTaskRunner(); 2363 ->toSingleThreadTaskRunner();
2360 } 2364 }
2361 2365
2362 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2366 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2363 return m_inputMethodController.get(); 2367 return m_inputMethodController.get();
2364 } 2368 }
2365 2369
2366 } // namespace blink 2370 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698