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/core/page/ChromeClient.h

Issue 2887633002: Break dependency on ChromeClientImpl for WebPluginContainerImpl. (Closed)
Patch Set: Created 3 years, 7 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 class WebImage; 81 class WebImage;
82 class WebLayer; 82 class WebLayer;
83 class WebLayerTreeView; 83 class WebLayerTreeView;
84 class WebLocalFrameBase; 84 class WebLocalFrameBase;
85 class WebRemoteFrameBase; 85 class WebRemoteFrameBase;
86 86
87 struct CompositedSelection; 87 struct CompositedSelection;
88 struct DateTimeChooserParameters; 88 struct DateTimeChooserParameters;
89 struct FrameLoadRequest; 89 struct FrameLoadRequest;
90 struct ViewportDescription; 90 struct ViewportDescription;
91 struct WebCursorInfo;
91 struct WebPoint; 92 struct WebPoint;
92 struct WebScreenInfo; 93 struct WebScreenInfo;
93 struct WindowFeatures; 94 struct WindowFeatures;
94 95
95 class CORE_EXPORT ChromeClient : public PlatformChromeClient { 96 class CORE_EXPORT ChromeClient : public PlatformChromeClient {
96 public: 97 public:
97 virtual void ChromeDestroyed() = 0; 98 virtual void ChromeDestroyed() = 0;
98 99
99 // The specified rectangle is adjusted for the minimum window size and the 100 // The specified rectangle is adjusted for the minimum window size and the
100 // screen, then setWindowRect with the adjusted rectangle is called. 101 // screen, then setWindowRect with the adjusted rectangle is called.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Methods used by PlatformChromeClient. 191 // Methods used by PlatformChromeClient.
191 virtual WebScreenInfo GetScreenInfo() const = 0; 192 virtual WebScreenInfo GetScreenInfo() const = 0;
192 virtual void SetCursor(const Cursor&, LocalFrame* local_root) = 0; 193 virtual void SetCursor(const Cursor&, LocalFrame* local_root) = 0;
193 // End methods used by PlatformChromeClient. 194 // End methods used by PlatformChromeClient.
194 195
195 virtual Cursor LastSetCursorForTesting() const = 0; 196 virtual Cursor LastSetCursorForTesting() const = 0;
196 Node* LastSetTooltipNodeForTesting() const { 197 Node* LastSetTooltipNodeForTesting() const {
197 return last_mouse_over_node_.Get(); 198 return last_mouse_over_node_.Get();
198 } 199 }
199 200
201 virtual void SetCursorForPlugin(const WebCursorInfo&, LocalFrame*) = 0;
202
200 // Returns a custom visible content rect if a viewport override is active. 203 // Returns a custom visible content rect if a viewport override is active.
201 virtual WTF::Optional<IntRect> VisibleContentRectForPainting() const { 204 virtual WTF::Optional<IntRect> VisibleContentRectForPainting() const {
202 return WTF::nullopt; 205 return WTF::nullopt;
203 } 206 }
204 207
205 virtual void DispatchViewportPropertiesDidChange( 208 virtual void DispatchViewportPropertiesDidChange(
206 const ViewportDescription&) const {} 209 const ViewportDescription&) const {}
207 210
208 virtual void ContentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 211 virtual void ContentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
209 virtual void PageScaleFactorChanged() const {} 212 virtual void PageScaleFactorChanged() const {}
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 WeakMember<Node> last_mouse_over_node_; 397 WeakMember<Node> last_mouse_over_node_;
395 LayoutPoint last_tool_tip_point_; 398 LayoutPoint last_tool_tip_point_;
396 String last_tool_tip_text_; 399 String last_tool_tip_text_;
397 400
398 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 401 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
399 }; 402 };
400 403
401 } // namespace blink 404 } // namespace blink
402 405
403 #endif // ChromeClient_h 406 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698