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

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

Issue 2787703002: Add mojo service for CopylessPaste in Blink (Closed)
Patch Set: Created 3 years, 8 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) 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #include "core/page/FocusController.h" 152 #include "core/page/FocusController.h"
153 #include "core/page/FrameTree.h" 153 #include "core/page/FrameTree.h"
154 #include "core/page/Page.h" 154 #include "core/page/Page.h"
155 #include "core/page/PrintContext.h" 155 #include "core/page/PrintContext.h"
156 #include "core/paint/PaintLayer.h" 156 #include "core/paint/PaintLayer.h"
157 #include "core/paint/TransformRecorder.h" 157 #include "core/paint/TransformRecorder.h"
158 #include "core/style/StyleInheritedData.h" 158 #include "core/style/StyleInheritedData.h"
159 #include "core/timing/DOMWindowPerformance.h" 159 #include "core/timing/DOMWindowPerformance.h"
160 #include "core/timing/Performance.h" 160 #include "core/timing/Performance.h"
161 #include "modules/app_banner/AppBannerController.h" 161 #include "modules/app_banner/AppBannerController.h"
162 #include "modules/document_metadata/CopylessPasteServer.h"
162 #include "modules/installation/InstallationServiceImpl.h" 163 #include "modules/installation/InstallationServiceImpl.h"
163 #include "platform/ScriptForbiddenScope.h" 164 #include "platform/ScriptForbiddenScope.h"
164 #include "platform/UserGestureIndicator.h" 165 #include "platform/UserGestureIndicator.h"
165 #include "platform/WebFrameScheduler.h" 166 #include "platform/WebFrameScheduler.h"
166 #include "platform/clipboard/ClipboardUtilities.h" 167 #include "platform/clipboard/ClipboardUtilities.h"
167 #include "platform/fonts/FontCache.h" 168 #include "platform/fonts/FontCache.h"
168 #include "platform/graphics/GraphicsContext.h" 169 #include "platform/graphics/GraphicsContext.h"
169 #include "platform/graphics/GraphicsLayerClient.h" 170 #include "platform/graphics/GraphicsLayerClient.h"
170 #include "platform/graphics/paint/ClipRecorder.h" 171 #include "platform/graphics/paint/ClipRecorder.h"
171 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" 172 #include "platform/graphics/paint/DisplayItemCacheSkipper.h"
(...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 } 1630 }
1630 1631
1631 // TODO(dominickn): This interface should be document-scoped rather than 1632 // TODO(dominickn): This interface should be document-scoped rather than
1632 // frame-scoped, as the resulting banner event is dispatched to 1633 // frame-scoped, as the resulting banner event is dispatched to
1633 // frame()->document(). 1634 // frame()->document().
1634 frame()->interfaceRegistry()->addInterface(WTF::bind( 1635 frame()->interfaceRegistry()->addInterface(WTF::bind(
1635 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame()))); 1636 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame())));
1636 1637
1637 frame()->interfaceRegistry()->addInterface(WTF::bind( 1638 frame()->interfaceRegistry()->addInterface(WTF::bind(
1638 &InstallationServiceImpl::create, wrapWeakPersistent(frame()))); 1639 &InstallationServiceImpl::create, wrapWeakPersistent(frame())));
1640
1641 frame()->interfaceRegistry()->addInterface(WTF::bind(
1642 &CopylessPasteServer::bindMojoRequest, wrapWeakPersistent(frame())));
1639 if (!owner) { 1643 if (!owner) {
1640 // This trace event is needed to detect the main frame of the 1644 // This trace event is needed to detect the main frame of the
1641 // renderer in telemetry metrics. See crbug.com/692112#c11. 1645 // renderer in telemetry metrics. See crbug.com/692112#c11.
1642 TRACE_EVENT_INSTANT1("loading", "markAsMainFrame", 1646 TRACE_EVENT_INSTANT1("loading", "markAsMainFrame",
1643 TRACE_EVENT_SCOPE_THREAD, "frame", frame()); 1647 TRACE_EVENT_SCOPE_THREAD, "frame", frame());
1644 } 1648 }
1645 } 1649 }
1646 } 1650 }
1647 1651
1648 LocalFrame* WebLocalFrameImpl::createChildFrame( 1652 LocalFrame* WebLocalFrameImpl::createChildFrame(
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 createMarkup(startPosition, endPosition, AnnotateForInterchange, 2520 createMarkup(startPosition, endPosition, AnnotateForInterchange,
2517 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2521 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2518 } else { 2522 } else {
2519 clipHtml = 2523 clipHtml =
2520 createMarkup(endPosition, startPosition, AnnotateForInterchange, 2524 createMarkup(endPosition, startPosition, AnnotateForInterchange,
2521 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); 2525 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs);
2522 } 2526 }
2523 } 2527 }
2524 2528
2525 } // namespace blink 2529 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698