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

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

Issue 173265: Bugfix for 2932 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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/renderer/render_view.h ('k') | webkit/glue/webview_impl.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 IPC_MESSAGE_HANDLER(ViewMsg_ToggleSpellCheck, OnToggleSpellCheck) 347 IPC_MESSAGE_HANDLER(ViewMsg_ToggleSpellCheck, OnToggleSpellCheck)
348 IPC_MESSAGE_HANDLER(ViewMsg_Delete, OnDelete) 348 IPC_MESSAGE_HANDLER(ViewMsg_Delete, OnDelete)
349 IPC_MESSAGE_HANDLER(ViewMsg_SelectAll, OnSelectAll) 349 IPC_MESSAGE_HANDLER(ViewMsg_SelectAll, OnSelectAll)
350 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt) 350 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt)
351 IPC_MESSAGE_HANDLER(ViewMsg_ExecuteEditCommand, OnExecuteEditCommand) 351 IPC_MESSAGE_HANDLER(ViewMsg_ExecuteEditCommand, OnExecuteEditCommand)
352 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind) 352 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind)
353 IPC_MESSAGE_HANDLER(ViewMsg_DeterminePageText, OnDeterminePageText) 353 IPC_MESSAGE_HANDLER(ViewMsg_DeterminePageText, OnDeterminePageText)
354 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom) 354 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom)
355 IPC_MESSAGE_HANDLER(ViewMsg_InsertText, OnInsertText) 355 IPC_MESSAGE_HANDLER(ViewMsg_InsertText, OnInsertText)
356 IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding) 356 IPC_MESSAGE_HANDLER(ViewMsg_SetPageEncoding, OnSetPageEncoding)
357 IPC_MESSAGE_HANDLER(ViewMsg_ResetPageEncodingToDefault,
358 OnResetPageEncodingToDefault)
357 IPC_MESSAGE_HANDLER(ViewMsg_SetupDevToolsClient, OnSetupDevToolsClient) 359 IPC_MESSAGE_HANDLER(ViewMsg_SetupDevToolsClient, OnSetupDevToolsClient)
358 IPC_MESSAGE_HANDLER(ViewMsg_DownloadFavIcon, OnDownloadFavIcon) 360 IPC_MESSAGE_HANDLER(ViewMsg_DownloadFavIcon, OnDownloadFavIcon)
359 IPC_MESSAGE_HANDLER(ViewMsg_ScriptEvalRequest, OnScriptEvalRequest) 361 IPC_MESSAGE_HANDLER(ViewMsg_ScriptEvalRequest, OnScriptEvalRequest)
360 IPC_MESSAGE_HANDLER(ViewMsg_CSSInsertRequest, OnCSSInsertRequest) 362 IPC_MESSAGE_HANDLER(ViewMsg_CSSInsertRequest, OnCSSInsertRequest)
361 IPC_MESSAGE_HANDLER(ViewMsg_AddMessageToConsole, OnAddMessageToConsole) 363 IPC_MESSAGE_HANDLER(ViewMsg_AddMessageToConsole, OnAddMessageToConsole)
362 IPC_MESSAGE_HANDLER(ViewMsg_ReservePageIDRange, OnReservePageIDRange) 364 IPC_MESSAGE_HANDLER(ViewMsg_ReservePageIDRange, OnReservePageIDRange)
363 IPC_MESSAGE_HANDLER(ViewMsg_UploadFile, OnUploadFileRequest) 365 IPC_MESSAGE_HANDLER(ViewMsg_UploadFile, OnUploadFileRequest)
364 IPC_MESSAGE_HANDLER(ViewMsg_FormFill, OnFormFill) 366 IPC_MESSAGE_HANDLER(ViewMsg_FormFill, OnFormFill)
365 IPC_MESSAGE_HANDLER(ViewMsg_FillPasswordForm, OnFillPasswordForm) 367 IPC_MESSAGE_HANDLER(ViewMsg_FillPasswordForm, OnFillPasswordForm)
366 IPC_MESSAGE_HANDLER(ViewMsg_DragTargetDragEnter, OnDragTargetDragEnter) 368 IPC_MESSAGE_HANDLER(ViewMsg_DragTargetDragEnter, OnDragTargetDragEnter)
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 WebFrame* frame = webview()->GetFocusedFrame(); 2574 WebFrame* frame = webview()->GetFocusedFrame();
2573 if (!frame) 2575 if (!frame)
2574 return; 2576 return;
2575 frame->insertText(text); 2577 frame->insertText(text);
2576 } 2578 }
2577 2579
2578 void RenderView::OnSetPageEncoding(const std::string& encoding_name) { 2580 void RenderView::OnSetPageEncoding(const std::string& encoding_name) {
2579 webview()->SetPageEncoding(encoding_name); 2581 webview()->SetPageEncoding(encoding_name);
2580 } 2582 }
2581 2583
2584 void RenderView::OnResetPageEncodingToDefault() {
2585 std::string no_encoding;
2586 webview()->SetPageEncoding(no_encoding);
2587 }
2588
2582 void RenderView::NavigateBackForwardSoon(int offset) { 2589 void RenderView::NavigateBackForwardSoon(int offset) {
2583 history_back_list_count_ += offset; 2590 history_back_list_count_ += offset;
2584 history_forward_list_count_ -= offset; 2591 history_forward_list_count_ -= offset;
2585 2592
2586 Send(new ViewHostMsg_GoToEntryAtOffset(routing_id_, offset)); 2593 Send(new ViewHostMsg_GoToEntryAtOffset(routing_id_, offset));
2587 } 2594 }
2588 2595
2589 int RenderView::GetHistoryBackListCount() { 2596 int RenderView::GetHistoryBackListCount() {
2590 return history_back_list_count_; 2597 return history_back_list_count_;
2591 } 2598 }
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
3379 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3386 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3380 } 3387 }
3381 3388
3382 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3389 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3383 DCHECK(frame); 3390 DCHECK(frame);
3384 if (print_helper_.get() == NULL) { 3391 if (print_helper_.get() == NULL) {
3385 print_helper_.reset(new PrintWebViewHelper(this)); 3392 print_helper_.reset(new PrintWebViewHelper(this));
3386 } 3393 }
3387 print_helper_->Print(frame, script_initiated); 3394 print_helper_->Print(frame, script_initiated);
3388 } 3395 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698