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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding an IPC_MESSAGE_EXPORT to line 30 of param_traits_macro.h makes it link in shared build Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 const gfx::Rect& start_rect, 1054 const gfx::Rect& start_rect,
1055 const gfx::Rect& end_rect) { 1055 const gfx::Rect& end_rect) {
1056 if (view()) 1056 if (view())
1057 view()->SelectionBoundsChanged(start_rect, end_rect); 1057 view()->SelectionBoundsChanged(start_rect, end_rect);
1058 } 1058 }
1059 1059
1060 void RenderViewHost::OnMsgRunJavaScriptMessage( 1060 void RenderViewHost::OnMsgRunJavaScriptMessage(
1061 const string16& message, 1061 const string16& message,
1062 const string16& default_prompt, 1062 const string16& default_prompt,
1063 const GURL& frame_url, 1063 const GURL& frame_url,
1064 const int flags, 1064 ui::JavascriptMessageType type,
1065 IPC::Message* reply_msg) { 1065 IPC::Message* reply_msg) {
1066 // While a JS message dialog is showing, tabs in the same process shouldn't 1066 // While a JS message dialog is showing, tabs in the same process shouldn't
1067 // process input events. 1067 // process input events.
1068 process()->SetIgnoreInputEvents(true); 1068 process()->SetIgnoreInputEvents(true);
1069 StopHangMonitorTimeout(); 1069 StopHangMonitorTimeout();
1070 delegate_->RunJavaScriptMessage(this, message, default_prompt, frame_url, 1070 delegate_->RunJavaScriptMessage(this, message, default_prompt, frame_url,
1071 flags, reply_msg, 1071 type, reply_msg,
1072 &are_javascript_messages_suppressed_); 1072 &are_javascript_messages_suppressed_);
1073 } 1073 }
1074 1074
1075 void RenderViewHost::OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 1075 void RenderViewHost::OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
1076 const string16& message, 1076 const string16& message,
1077 IPC::Message* reply_msg) { 1077 IPC::Message* reply_msg) {
1078 // While a JS before unload dialog is showing, tabs in the same process 1078 // While a JS before unload dialog is showing, tabs in the same process
1079 // shouldn't process input events. 1079 // shouldn't process input events.
1080 process()->SetIgnoreInputEvents(true); 1080 process()->SetIgnoreInputEvents(true);
1081 StopHangMonitorTimeout(); 1081 StopHangMonitorTimeout();
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 1521
1522 void RenderViewHost::OnWebUISend(const GURL& source_url, 1522 void RenderViewHost::OnWebUISend(const GURL& source_url,
1523 const std::string& name, 1523 const std::string& name,
1524 const base::ListValue& args) { 1524 const base::ListValue& args) {
1525 delegate_->WebUISend(this, source_url, name, args); 1525 delegate_->WebUISend(this, source_url, name, args);
1526 } 1526 }
1527 1527
1528 void RenderViewHost::ClearPowerSaveBlockers() { 1528 void RenderViewHost::ClearPowerSaveBlockers() {
1529 STLDeleteValues(&power_save_blockers_); 1529 STLDeleteValues(&power_save_blockers_);
1530 } 1530 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698