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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 2684093002: Rename JavaScript "messages" to "dialogs". (Closed)
Patch Set: win fox Created 3 years, 10 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/browser/webui/web_ui_impl.h" 15 #include "content/browser/webui/web_ui_impl.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/frame_message_enums.h" 17 #include "content/common/frame_message_enums.h"
18 #include "content/public/browser/site_instance.h" 18 #include "content/public/browser/site_instance.h"
19 #include "content/public/common/javascript_message_type.h" 19 #include "content/public/common/javascript_dialog_type.h"
20 #include "content/public/common/media_stream_request.h" 20 #include "content/public/common/media_stream_request.h"
21 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 21 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
22 #include "net/http/http_response_headers.h" 22 #include "net/http/http_response_headers.h"
23 #include "ui/base/window_open_disposition.h" 23 #include "ui/base/window_open_disposition.h"
24 24
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
27 #endif 27 #endif
28 28
29 class GURL; 29 class GURL;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} 86 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
87 87
88 // Informs the delegate whenever a RenderFrameHost is deleted. 88 // Informs the delegate whenever a RenderFrameHost is deleted.
89 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} 89 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
90 90
91 // A context menu should be shown, to be built using the context information 91 // A context menu should be shown, to be built using the context information
92 // provided in the supplied params. 92 // provided in the supplied params.
93 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 93 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
94 const ContextMenuParams& params) {} 94 const ContextMenuParams& params) {}
95 95
96 // A JavaScript message, confirmation or prompt should be shown. 96 // A JavaScript alert, confirmation or prompt dialog should be shown.
97 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 97 virtual void RunJavaScriptDialog(RenderFrameHost* render_frame_host,
98 const base::string16& message, 98 const base::string16& message,
99 const base::string16& default_prompt, 99 const base::string16& default_prompt,
100 const GURL& frame_url, 100 const GURL& frame_url,
101 JavaScriptMessageType type, 101 JavaScriptDialogType type,
102 IPC::Message* reply_msg) {} 102 IPC::Message* reply_msg) {}
103 103
104 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, 104 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host,
105 bool is_reload, 105 bool is_reload,
106 IPC::Message* reply_msg) {} 106 IPC::Message* reply_msg) {}
107 107
108 // Called when a file selection is to be done. 108 // Called when a file selection is to be done.
109 virtual void RunFileChooser(RenderFrameHost* render_frame_host, 109 virtual void RunFileChooser(RenderFrameHost* render_frame_host,
110 const FileChooserParams& params) {} 110 const FileChooserParams& params) {}
111 111
112 // Another page accessed the top-level initial empty document, which means it 112 // Another page accessed the top-level initial empty document, which means it
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 const gfx::Rect& initial_rect, 271 const gfx::Rect& initial_rect,
272 bool user_gesture) {} 272 bool user_gesture) {}
273 273
274 protected: 274 protected:
275 virtual ~RenderFrameHostDelegate() {} 275 virtual ~RenderFrameHostDelegate() {}
276 }; 276 };
277 277
278 } // namespace content 278 } // namespace content
279 279
280 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 280 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698