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

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

Issue 2644653003: Make OffscreenCanvas animation in sync with its placeholder canvas's parent frame rate (Closed)
Patch Set: rebase again Created 3 years, 10 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 * 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/frame/VisualViewport.h" 44 #include "core/frame/VisualViewport.h"
45 #include "core/html/HTMLInputElement.h" 45 #include "core/html/HTMLInputElement.h"
46 #include "core/html/forms/ColorChooser.h" 46 #include "core/html/forms/ColorChooser.h"
47 #include "core/html/forms/ColorChooserClient.h" 47 #include "core/html/forms/ColorChooserClient.h"
48 #include "core/html/forms/DateTimeChooser.h" 48 #include "core/html/forms/DateTimeChooser.h"
49 #include "core/layout/HitTestResult.h" 49 #include "core/layout/HitTestResult.h"
50 #include "core/layout/LayoutPart.h" 50 #include "core/layout/LayoutPart.h"
51 #include "core/layout/compositing/CompositedSelection.h" 51 #include "core/layout/compositing/CompositedSelection.h"
52 #include "core/loader/DocumentLoader.h" 52 #include "core/loader/DocumentLoader.h"
53 #include "core/loader/FrameLoadRequest.h" 53 #include "core/loader/FrameLoadRequest.h"
54 #include "core/page/ChromeClient.h"
54 #include "core/page/Page.h" 55 #include "core/page/Page.h"
55 #include "core/page/PopupOpeningObserver.h" 56 #include "core/page/PopupOpeningObserver.h"
56 #include "modules/accessibility/AXObject.h" 57 #include "modules/accessibility/AXObject.h"
57 #include "modules/audio_output_devices/AudioOutputDeviceClient.h" 58 #include "modules/audio_output_devices/AudioOutputDeviceClient.h"
58 #include "modules/installedapp/InstalledAppController.h" 59 #include "modules/installedapp/InstalledAppController.h"
59 #include "modules/mediastream/UserMediaController.h" 60 #include "modules/mediastream/UserMediaController.h"
60 #include "modules/navigatorcontentutils/NavigatorContentUtils.h" 61 #include "modules/navigatorcontentutils/NavigatorContentUtils.h"
61 #include "modules/presentation/PresentationController.h" 62 #include "modules/presentation/PresentationController.h"
62 #include "modules/push_messaging/PushController.h" 63 #include "modules/push_messaging/PushController.h"
63 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h" 64 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h"
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 Document::PageDismissalType dismissalType) const { 922 Document::PageDismissalType dismissalType) const {
922 String message = String("Blocked ") + dialogTypeToString(dialogType) + "('" + 923 String message = String("Blocked ") + dialogTypeToString(dialogType) + "('" +
923 dialogMessage + "') during " + 924 dialogMessage + "') during " +
924 dismissalTypeToString(dismissalType) + "."; 925 dismissalTypeToString(dismissalType) + ".";
925 WebLocalFrameImpl::fromFrame(frame)->addMessageToConsole( 926 WebLocalFrameImpl::fromFrame(frame)->addMessageToConsole(
926 WebConsoleMessage(WebConsoleMessage::LevelError, message)); 927 WebConsoleMessage(WebConsoleMessage::LevelError, message));
927 928
928 return false; 929 return false;
929 } 930 }
930 931
932 WebLayerTreeView* ChromeClientImpl::getWebLayerTreeView(LocalFrame* frame) {
933 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
934 return webFrame->localRoot()->frameWidget()->getLayerTreeView();
935 }
936
931 void ChromeClientImpl::setEventListenerProperties( 937 void ChromeClientImpl::setEventListenerProperties(
932 LocalFrame* frame, 938 LocalFrame* frame,
933 WebEventListenerClass eventClass, 939 WebEventListenerClass eventClass,
934 WebEventListenerProperties properties) { 940 WebEventListenerProperties properties) {
935 // |frame| might be null if called via TreeScopeAdopter:: 941 // |frame| might be null if called via TreeScopeAdopter::
936 // moveNodeToNewDocument() and the new document has no frame attached. 942 // moveNodeToNewDocument() and the new document has no frame attached.
937 // Since a document without a frame cannot attach one later, it is safe to 943 // Since a document without a frame cannot attach one later, it is safe to
938 // exit early. 944 // exit early.
939 if (!frame) 945 if (!frame)
940 return; 946 return;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 PresentationController::provideTo(frame, client->presentationClient()); 1219 PresentationController::provideTo(frame, client->presentationClient());
1214 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1220 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1215 provideAudioOutputDeviceClientTo(frame, 1221 provideAudioOutputDeviceClientTo(frame,
1216 new AudioOutputDeviceClientImpl(frame)); 1222 new AudioOutputDeviceClientImpl(frame));
1217 } 1223 }
1218 if (RuntimeEnabledFeatures::installedAppEnabled()) 1224 if (RuntimeEnabledFeatures::installedAppEnabled())
1219 InstalledAppController::provideTo(frame, client->installedAppClient()); 1225 InstalledAppController::provideTo(frame, client->installedAppClient());
1220 } 1226 }
1221 1227
1222 } // namespace blink 1228 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/public/platform/WebLayerTreeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698