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

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

Issue 1180843006: [DevTools] Add dialog type and return value to Page.javascriptDialog{Opening,Closed}. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: frontend 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual void setResizable(bool) = 0; 120 virtual void setResizable(bool) = 0;
121 121
122 virtual bool shouldReportDetailedMessageForSource(LocalFrame&, const String& source) = 0; 122 virtual bool shouldReportDetailedMessageForSource(LocalFrame&, const String& source) = 0;
123 virtual void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, c onst String& message, unsigned lineNumber, const String& sourceID, const String& stackTrace) = 0; 123 virtual void addMessageToConsole(LocalFrame*, MessageSource, MessageLevel, c onst String& message, unsigned lineNumber, const String& sourceID, const String& stackTrace) = 0;
124 124
125 virtual bool canOpenBeforeUnloadConfirmPanel() = 0; 125 virtual bool canOpenBeforeUnloadConfirmPanel() = 0;
126 bool openBeforeUnloadConfirmPanel(const String& message, LocalFrame*); 126 bool openBeforeUnloadConfirmPanel(const String& message, LocalFrame*);
127 127
128 virtual void closeWindowSoon() = 0; 128 virtual void closeWindowSoon() = 0;
129 129
130 void openJavaScriptAlert(LocalFrame*, const String&); 130 bool openJavaScriptAlert(LocalFrame*, const String&);
131 bool openJavaScriptConfirm(LocalFrame*, const String&); 131 bool openJavaScriptConfirm(LocalFrame*, const String&);
132 bool openJavaScriptPrompt(LocalFrame*, const String& message, const String& defaultValue, String& result); 132 bool openJavaScriptPrompt(LocalFrame*, const String& message, const String& defaultValue, String& result);
133 virtual void setStatusbarText(const String&) = 0; 133 virtual void setStatusbarText(const String&) = 0;
134 virtual bool tabsToLinks() = 0; 134 virtual bool tabsToLinks() = 0;
135 135
136 virtual void* webView() const = 0; 136 virtual void* webView() const = 0;
137 137
138 virtual IntRect windowResizerRect() const = 0; 138 virtual IntRect windowResizerRect() const = 0;
139 139
140 // Methods used by HostWindow. 140 // Methods used by HostWindow.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0; 244 virtual void registerPopupOpeningObserver(PopupOpeningObserver*) = 0;
245 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 245 virtual void unregisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
246 246
247 protected: 247 protected:
248 virtual ~ChromeClient() { } 248 virtual ~ChromeClient() { }
249 249
250 virtual void showMouseOverURL(const HitTestResult&) = 0; 250 virtual void showMouseOverURL(const HitTestResult&) = 0;
251 virtual void setWindowRect(const IntRect&) = 0; 251 virtual void setWindowRect(const IntRect&) = 0;
252 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message) = 0; 252 virtual bool openBeforeUnloadConfirmPanelDelegate(LocalFrame*, const String& message) = 0;
253 virtual void openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0; 253 virtual bool openJavaScriptAlertDelegate(LocalFrame*, const String&) = 0;
254 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0; 254 virtual bool openJavaScriptConfirmDelegate(LocalFrame*, const String&) = 0;
255 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0; 255 virtual bool openJavaScriptPromptDelegate(LocalFrame*, const String& message , const String& defaultValue, String& result) = 0;
256 virtual void printDelegate(LocalFrame*) = 0; 256 virtual void printDelegate(LocalFrame*) = 0;
257 257
258 private: 258 private:
259 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message); 259 bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const S tring& message);
260 void setToolTip(const HitTestResult&); 260 void setToolTip(const HitTestResult&);
261 }; 261 };
262 262
263 } // namespace blink 263 } // namespace blink
264 264
265 #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