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

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

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Check for layerTreeView while setting handlers. Created 3 years, 11 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 24 matching lines...) Expand all
35 #include "core/page/ChromeClient.h" 35 #include "core/page/ChromeClient.h"
36 #include "core/page/WindowFeatures.h" 36 #include "core/page/WindowFeatures.h"
37 #include "public/web/WebNavigationPolicy.h" 37 #include "public/web/WebNavigationPolicy.h"
38 #include "web/WebExport.h" 38 #include "web/WebExport.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class PagePopup; 43 class PagePopup;
44 class PagePopupClient; 44 class PagePopupClient;
45 class WebLayerTreeView;
45 class WebViewImpl; 46 class WebViewImpl;
47 class WebFrameWidgetBase;
46 struct WebCursorInfo; 48 struct WebCursorInfo;
47 49
48 // Handles window-level notifications from core on behalf of a WebView. 50 // Handles window-level notifications from core on behalf of a WebView.
49 class WEB_EXPORT ChromeClientImpl final : public ChromeClient { 51 class WEB_EXPORT ChromeClientImpl final : public ChromeClient {
50 public: 52 public:
51 static ChromeClientImpl* create(WebViewImpl*); 53 static ChromeClientImpl* create(WebViewImpl*);
52 ~ChromeClientImpl() override; 54 ~ChromeClientImpl() override;
53 55
54 void* webView() const override; 56 void* webView() const override;
55 57
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 ColorChooser* openColorChooser(LocalFrame*, 131 ColorChooser* openColorChooser(LocalFrame*,
130 ColorChooserClient*, 132 ColorChooserClient*,
131 const Color&) override; 133 const Color&) override;
132 DateTimeChooser* openDateTimeChooser( 134 DateTimeChooser* openDateTimeChooser(
133 DateTimeChooserClient*, 135 DateTimeChooserClient*,
134 const DateTimeChooserParameters&) override; 136 const DateTimeChooserParameters&) override;
135 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override; 137 void openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) override;
136 void enumerateChosenDirectory(FileChooser*) override; 138 void enumerateChosenDirectory(FileChooser*) override;
137 void setCursor(const Cursor&, LocalFrame*) override; 139 void setCursor(const Cursor&, LocalFrame*) override;
138 Cursor lastSetCursorForTesting() const override; 140 Cursor lastSetCursorForTesting() const override;
139 void setEventListenerProperties(WebEventListenerClass, 141 void setEventListenerProperties(LocalFrame*,
142 WebEventListenerClass,
140 WebEventListenerProperties) override; 143 WebEventListenerProperties) override;
141 WebEventListenerProperties eventListenerProperties( 144 WebEventListenerProperties eventListenerProperties(
145 LocalFrame*,
142 WebEventListenerClass) const override; 146 WebEventListenerClass) const override;
143 void setHasScrollEventHandlers(bool hasEventHandlers) override; 147 void setHasScrollEventHandlers(LocalFrame*, bool hasEventHandlers) override;
144 bool hasScrollEventHandlers() const override;
145 void setTouchAction(TouchAction) override; 148 void setTouchAction(TouchAction) override;
146 149
147 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override; 150 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override;
148 151
149 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override; 152 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override;
150 153
151 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*, 154 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*,
152 LocalFrame*) override; 155 LocalFrame*) override;
153 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*, 156 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*,
154 LocalFrame*) override; 157 LocalFrame*) override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 224
222 void installSupplements(LocalFrame&) override; 225 void installSupplements(LocalFrame&) override;
223 226
224 private: 227 private:
225 explicit ChromeClientImpl(WebViewImpl*); 228 explicit ChromeClientImpl(WebViewImpl*);
226 229
227 bool isChromeClientImpl() const override { return true; } 230 bool isChromeClientImpl() const override { return true; }
228 void registerPopupOpeningObserver(PopupOpeningObserver*) override; 231 void registerPopupOpeningObserver(PopupOpeningObserver*) override;
229 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; 232 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override;
230 233
234 void setEventListenerProperties(WebFrameWidgetBase*,
235 WebEventListenerClass,
236 WebEventListenerProperties);
237 WebEventListenerProperties eventListenerProperties(
238 WebLayerTreeView*,
239 WebEventListenerClass) const;
240
231 void setCursor(const WebCursorInfo&, LocalFrame*); 241 void setCursor(const WebCursorInfo&, LocalFrame*);
232 242
233 WebViewImpl* m_webView; // Weak pointer. 243 WebViewImpl* m_webView; // Weak pointer.
234 WindowFeatures m_windowFeatures; 244 WindowFeatures m_windowFeatures;
235 Vector<PopupOpeningObserver*> m_popupOpeningObservers; 245 Vector<PopupOpeningObserver*> m_popupOpeningObservers;
236 Cursor m_lastSetMouseCursorForTesting; 246 Cursor m_lastSetMouseCursorForTesting;
237 bool m_cursorOverridden; 247 bool m_cursorOverridden;
238 bool m_didRequestNonEmptyToolTip; 248 bool m_didRequestNonEmptyToolTip;
239 }; 249 };
240 250
241 DEFINE_TYPE_CASTS(ChromeClientImpl, 251 DEFINE_TYPE_CASTS(ChromeClientImpl,
242 ChromeClient, 252 ChromeClient,
243 client, 253 client,
244 client->isChromeClientImpl(), 254 client->isChromeClientImpl(),
245 client.isChromeClientImpl()); 255 client.isChromeClientImpl());
246 256
247 } // namespace blink 257 } // namespace blink
248 258
249 #endif 259 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698