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

Side by Side Diff: Source/core/page/ChromeClient.h

Issue 1143043006: Cleanup: Move ChromeClient::m_lastSetMouseCursorForTesting to ChromeClientImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, 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 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool runJavaScriptPrompt(LocalFrame*, const String& message, const String& d efaultValue, String& result); 129 bool runJavaScriptPrompt(LocalFrame*, const String& message, const String& d efaultValue, String& result);
130 virtual void setStatusbarText(const String&) = 0; 130 virtual void setStatusbarText(const String&) = 0;
131 virtual bool tabsToLinks() = 0; 131 virtual bool tabsToLinks() = 0;
132 132
133 virtual void* webView() const = 0; 133 virtual void* webView() const = 0;
134 134
135 virtual IntRect windowResizerRect() const = 0; 135 virtual IntRect windowResizerRect() const = 0;
136 136
137 // Methods used by HostWindow. 137 // Methods used by HostWindow.
138 virtual WebScreenInfo screenInfo() const = 0; 138 virtual WebScreenInfo screenInfo() const = 0;
139 void setCursor(const Cursor&); 139 virtual void setCursor(const Cursor&) = 0;
140 // End methods used by HostWindow. 140 // End methods used by HostWindow.
141 Cursor getLastSetCursorForTesting() const; 141 virtual Cursor lastSetCursorForTesting() const = 0;
142 142
143 virtual void scheduleAnimationForFrame(LocalFrame*) { } 143 virtual void scheduleAnimationForFrame(LocalFrame*) { }
144 144
145 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { } 145 virtual void dispatchViewportPropertiesDidChange(const ViewportDescription&) const { }
146 146
147 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 147 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
148 virtual void pageScaleFactorChanged() const { } 148 virtual void pageScaleFactorChanged() const { }
149 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; } 149 virtual float clampPageScaleFactorToLimits(float scale) const { return scale ; }
150 virtual void layoutUpdated(LocalFrame*) const { } 150 virtual void layoutUpdated(LocalFrame*) const { }
151 151
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 virtual void showMouseOverURL(const HitTestResult&) = 0; 247 virtual void showMouseOverURL(const HitTestResult&) = 0;
248 virtual void setWindowRect(const IntRect&) = 0; 248 virtual void setWindowRect(const IntRect&) = 0;
249 // TODO(tkent): Adding 'Internal' to virtual functions is not good. We 249 // TODO(tkent): Adding 'Internal' to virtual functions is not good. We
250 // should give better names, or move out non-internal versions of these 250 // should give better names, or move out non-internal versions of these
251 // functions. 251 // functions.
252 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String& message) = 0; 252 virtual bool runBeforeUnloadConfirmPanelInternal(LocalFrame*, const String& message) = 0;
253 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) = 0; 253 virtual void runJavaScriptAlertInternal(LocalFrame*, const String&) = 0;
254 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) = 0; 254 virtual bool runJavaScriptConfirmInternal(LocalFrame*, const String&) = 0;
255 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String& message, const String& defaultValue, String& result) = 0; 255 virtual bool runJavaScriptPromptInternal(LocalFrame*, const String& message, const String& defaultValue, String& result) = 0;
256 virtual void printInternal(LocalFrame*) = 0; 256 virtual void printInternal(LocalFrame*) = 0;
257 virtual void setCursorInternal(const Cursor&) = 0;
258 257
259 private: 258 private:
260 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St ring& message); 259 bool canRunModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const St ring& message);
261 void setToolTip(const HitTestResult&); 260 void setToolTip(const HitTestResult&);
262
263 Cursor m_lastSetMouseCursorForTesting;
264 }; 261 };
265 262
266 } // namespace blink 263 } // namespace blink
267 264
268 #endif // ChromeClient_h 265 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.h ('k') | Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698