OLD | NEW |
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 #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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTargetURL_ACK, OnUpdateTargetURLAck) | 395 IPC_MESSAGE_HANDLER(ViewMsg_UpdateTargetURL_ACK, OnUpdateTargetURLAck) |
396 IPC_MESSAGE_HANDLER(ViewMsg_UpdateWebPreferences, OnUpdateWebPreferences) | 396 IPC_MESSAGE_HANDLER(ViewMsg_UpdateWebPreferences, OnUpdateWebPreferences) |
397 IPC_MESSAGE_HANDLER(ViewMsg_SetAltErrorPageURL, OnSetAltErrorPageURL) | 397 IPC_MESSAGE_HANDLER(ViewMsg_SetAltErrorPageURL, OnSetAltErrorPageURL) |
398 IPC_MESSAGE_HANDLER(ViewMsg_InstallMissingPlugin, OnInstallMissingPlugin) | 398 IPC_MESSAGE_HANDLER(ViewMsg_InstallMissingPlugin, OnInstallMissingPlugin) |
399 IPC_MESSAGE_HANDLER(ViewMsg_RunFileChooserResponse, OnFileChooserResponse) | 399 IPC_MESSAGE_HANDLER(ViewMsg_RunFileChooserResponse, OnFileChooserResponse) |
400 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) | 400 IPC_MESSAGE_HANDLER(ViewMsg_EnableViewSourceMode, OnEnableViewSourceMode) |
401 IPC_MESSAGE_HANDLER(ViewMsg_UpdateBackForwardListCount, | 401 IPC_MESSAGE_HANDLER(ViewMsg_UpdateBackForwardListCount, |
402 OnUpdateBackForwardListCount) | 402 OnUpdateBackForwardListCount) |
403 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, | 403 IPC_MESSAGE_HANDLER(ViewMsg_GetAllSavableResourceLinksForCurrentPage, |
404 OnGetAllSavableResourceLinksForCurrentPage) | 404 OnGetAllSavableResourceLinksForCurrentPage) |
405 IPC_MESSAGE_HANDLER(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLink
s, | 405 IPC_MESSAGE_HANDLER( |
406 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) | 406 ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, |
| 407 OnGetSerializedHtmlDataForCurrentPageWithLocalLinks) |
407 IPC_MESSAGE_HANDLER(ViewMsg_GetApplicationInfo, OnGetApplicationInfo) | 408 IPC_MESSAGE_HANDLER(ViewMsg_GetApplicationInfo, OnGetApplicationInfo) |
408 IPC_MESSAGE_HANDLER(ViewMsg_GetAccessibilityInfo, OnGetAccessibilityInfo) | 409 IPC_MESSAGE_HANDLER(ViewMsg_GetAccessibilityInfo, OnGetAccessibilityInfo) |
409 IPC_MESSAGE_HANDLER(ViewMsg_ClearAccessibilityInfo, | 410 IPC_MESSAGE_HANDLER(ViewMsg_ClearAccessibilityInfo, |
410 OnClearAccessibilityInfo) | 411 OnClearAccessibilityInfo) |
411 IPC_MESSAGE_HANDLER(ViewMsg_ShouldClose, OnMsgShouldClose) | 412 IPC_MESSAGE_HANDLER(ViewMsg_ShouldClose, OnMsgShouldClose) |
412 IPC_MESSAGE_HANDLER(ViewMsg_ClosePage, OnClosePage) | 413 IPC_MESSAGE_HANDLER(ViewMsg_ClosePage, OnClosePage) |
413 IPC_MESSAGE_HANDLER(ViewMsg_ThemeChanged, OnThemeChanged) | 414 IPC_MESSAGE_HANDLER(ViewMsg_ThemeChanged, OnThemeChanged) |
414 #ifdef CHROME_PERSONALIZATION | 415 #ifdef CHROME_PERSONALIZATION |
415 IPC_MESSAGE_HANDLER(ViewMsg_PersonalizationEvent, OnPersonalizationEvent) | 416 IPC_MESSAGE_HANDLER(ViewMsg_PersonalizationEvent, OnPersonalizationEvent) |
416 #endif | 417 #endif |
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2978 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); | 2979 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); |
2979 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); | 2980 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); |
2980 } | 2981 } |
2981 | 2982 |
2982 void RenderView::OnResize(const gfx::Size& new_size, | 2983 void RenderView::OnResize(const gfx::Size& new_size, |
2983 const gfx::Rect& resizer_rect) { | 2984 const gfx::Rect& resizer_rect) { |
2984 if (webview()) | 2985 if (webview()) |
2985 webview()->HideAutofillPopup(); | 2986 webview()->HideAutofillPopup(); |
2986 RenderWidget::OnResize(new_size, resizer_rect); | 2987 RenderWidget::OnResize(new_size, resizer_rect); |
2987 } | 2988 } |
OLD | NEW |