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

Side by Side Diff: chrome/renderer/render_view.h

Issue 39163: Make JavaScript alerts reflect the URL of the frame they came from, not the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return modal_dialog_event_.get(); 135 return modal_dialog_event_.get();
136 } 136 }
137 137
138 // IPC::Channel::Listener 138 // IPC::Channel::Listener
139 virtual void OnMessageReceived(const IPC::Message& msg); 139 virtual void OnMessageReceived(const IPC::Message& msg);
140 140
141 // WebViewDelegate 141 // WebViewDelegate
142 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, 142 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
143 const std::string& json_arguments, 143 const std::string& json_arguments,
144 std::string* json_retval); 144 std::string* json_retval);
145 virtual void RunJavaScriptAlert(WebView* webview, 145 virtual void RunJavaScriptAlert(WebFrame* webframe,
146 const std::wstring& message); 146 const std::wstring& message);
147 virtual bool RunJavaScriptConfirm(WebView* webview, 147 virtual bool RunJavaScriptConfirm(WebFrame* webframe,
148 const std::wstring& message); 148 const std::wstring& message);
149 virtual bool RunJavaScriptPrompt(WebView* webview, 149 virtual bool RunJavaScriptPrompt(WebFrame* webframe,
150 const std::wstring& message, 150 const std::wstring& message,
151 const std::wstring& default_value, 151 const std::wstring& default_value,
152 std::wstring* result); 152 std::wstring* result);
153 virtual bool RunBeforeUnloadConfirm(WebView* webview, 153 virtual bool RunBeforeUnloadConfirm(WebFrame* webframe,
154 const std::wstring& message); 154 const std::wstring& message);
155 virtual void EnableSuddenTermination(); 155 virtual void EnableSuddenTermination();
156 virtual void DisableSuddenTermination(); 156 virtual void DisableSuddenTermination();
157 virtual void QueryFormFieldAutofill(const std::wstring& field_name, 157 virtual void QueryFormFieldAutofill(const std::wstring& field_name,
158 const std::wstring& text, 158 const std::wstring& text,
159 int64 node_id); 159 int64 node_id);
160 virtual void UpdateTargetURL(WebView* webview, 160 virtual void UpdateTargetURL(WebView* webview,
161 const GURL& url); 161 const GURL& url);
162 virtual void RunFileChooser(bool multi_select, 162 virtual void RunFileChooser(bool multi_select,
163 const std::wstring& title, 163 const std::wstring& title,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 // Calculates how "boring" a thumbnail is. The boring score is the 424 // Calculates how "boring" a thumbnail is. The boring score is the
425 // 0,1 ranged percentage of pixels that are the most common 425 // 0,1 ranged percentage of pixels that are the most common
426 // luma. Higher boring scores indicate that a higher percentage of a 426 // luma. Higher boring scores indicate that a higher percentage of a
427 // bitmap are all the same brightness. 427 // bitmap are all the same brightness.
428 double CalculateBoringScore(SkBitmap* bitmap); 428 double CalculateBoringScore(SkBitmap* bitmap);
429 429
430 bool RunJavaScriptMessage(int type, 430 bool RunJavaScriptMessage(int type,
431 const std::wstring& message, 431 const std::wstring& message,
432 const std::wstring& default_value, 432 const std::wstring& default_value,
433 const GURL& frame_url,
433 std::wstring* result); 434 std::wstring* result);
434 435
435 // Adds search provider from the given OpenSearch description URL as a 436 // Adds search provider from the given OpenSearch description URL as a
436 // keyword search. 437 // keyword search.
437 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected); 438 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected);
438 439
439 // Tells the browser process to navigate to a back/forward entry at the given 440 // Tells the browser process to navigate to a back/forward entry at the given
440 // offset from current. 441 // offset from current.
441 void GoToEntryAtOffset(int offset); 442 void GoToEntryAtOffset(int offset);
442 443
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 // change but is overridden by tests. 810 // change but is overridden by tests.
810 int delay_seconds_for_form_state_sync_; 811 int delay_seconds_for_form_state_sync_;
811 812
812 // A set of audio renderers registered to use IPC for audio output. 813 // A set of audio renderers registered to use IPC for audio output.
813 IDMap<AudioRendererImpl> audio_renderers_; 814 IDMap<AudioRendererImpl> audio_renderers_;
814 815
815 DISALLOW_COPY_AND_ASSIGN(RenderView); 816 DISALLOW_COPY_AND_ASSIGN(RenderView);
816 }; 817 };
817 818
818 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 819 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698