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

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

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 years, 1 month 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;
46 class WebLocalFrame;
45 class WebViewImpl; 47 class WebViewImpl;
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;
(...skipping 74 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;
144 // wjm - make this private
145 void setEventListenerProperties(WebLayerTreeView*,
146 WebEventListenerClass,
147 WebEventListenerProperties);
141 WebEventListenerProperties eventListenerProperties( 148 WebEventListenerProperties eventListenerProperties(
149 LocalFrame*,
142 WebEventListenerClass) const override; 150 WebEventListenerClass) const override;
151 WebEventListenerProperties eventListenerProperties(
152 WebLayerTreeView*,
153 WebEventListenerClass) const;
143 void setHasScrollEventHandlers(bool hasEventHandlers) override; 154 void setHasScrollEventHandlers(bool hasEventHandlers) override;
144 bool hasScrollEventHandlers() const override; 155 bool hasScrollEventHandlers() const override;
145 void setTouchAction(TouchAction) override; 156 void setTouchAction(TouchAction) override;
146 157
147 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override; 158 void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) override;
148 159
149 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override; 160 void attachRootLayer(WebLayer*, LocalFrame* localRoot) override;
150 161
151 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*, 162 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*,
152 LocalFrame*) override; 163 LocalFrame*) override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 230
220 void installSupplements(LocalFrame&) override; 231 void installSupplements(LocalFrame&) override;
221 232
222 private: 233 private:
223 explicit ChromeClientImpl(WebViewImpl*); 234 explicit ChromeClientImpl(WebViewImpl*);
224 235
225 bool isChromeClientImpl() const override { return true; } 236 bool isChromeClientImpl() const override { return true; }
226 void registerPopupOpeningObserver(PopupOpeningObserver*) override; 237 void registerPopupOpeningObserver(PopupOpeningObserver*) override;
227 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override; 238 void unregisterPopupOpeningObserver(PopupOpeningObserver*) override;
228 239
240 void setEventListenerProperties(WebLocalFrame*,
241 WebEventListenerClass,
242 WebEventListenerProperties);
243
229 void setCursor(const WebCursorInfo&, LocalFrame*); 244 void setCursor(const WebCursorInfo&, LocalFrame*);
230 245
231 WebViewImpl* m_webView; // Weak pointer. 246 WebViewImpl* m_webView; // Weak pointer.
232 WindowFeatures m_windowFeatures; 247 WindowFeatures m_windowFeatures;
233 Vector<PopupOpeningObserver*> m_popupOpeningObservers; 248 Vector<PopupOpeningObserver*> m_popupOpeningObservers;
234 Cursor m_lastSetMouseCursorForTesting; 249 Cursor m_lastSetMouseCursorForTesting;
235 bool m_cursorOverridden; 250 bool m_cursorOverridden;
236 bool m_didRequestNonEmptyToolTip; 251 bool m_didRequestNonEmptyToolTip;
237 }; 252 };
238 253
239 DEFINE_TYPE_CASTS(ChromeClientImpl, 254 DEFINE_TYPE_CASTS(ChromeClientImpl,
240 ChromeClient, 255 ChromeClient,
241 client, 256 client,
242 client->isChromeClientImpl(), 257 client->isChromeClientImpl(),
243 client.isChromeClientImpl()); 258 client.isChromeClientImpl());
244 259
245 } // namespace blink 260 } // namespace blink
246 261
247 #endif 262 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/ChromeClient.h ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698