| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 523 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
| 524 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 524 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
| 525 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 525 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
| 526 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 526 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
| 527 OnRegisterProtocolHandler) | 527 OnRegisterProtocolHandler) |
| 528 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 528 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
| 529 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 529 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
| 530 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 530 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
| 531 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 531 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
| 532 OnRequestPpapiBrokerPermission) | 532 OnRequestPpapiBrokerPermission) |
| 533 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID, | |
| 534 OnBrowserPluginMessage(message)) | |
| 535 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, | 533 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, |
| 536 OnBrowserPluginMessage(message)) | 534 OnBrowserPluginMessage(message)) |
| 537 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) | 535 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) |
| 538 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) | 536 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) |
| 539 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | 537 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
| 540 OnFirstVisuallyNonEmptyPaint) | 538 OnFirstVisuallyNonEmptyPaint) |
| 541 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, | 539 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, |
| 542 OnShowValidationMessage) | 540 OnShowValidationMessage) |
| 543 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, | 541 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, |
| 544 OnHideValidationMessage) | 542 OnHideValidationMessage) |
| (...skipping 3521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4066 | 4064 |
| 4067 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4065 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
| 4068 if (!delegate_) | 4066 if (!delegate_) |
| 4069 return; | 4067 return; |
| 4070 const gfx::Size new_size = GetPreferredSize(); | 4068 const gfx::Size new_size = GetPreferredSize(); |
| 4071 if (new_size != old_size) | 4069 if (new_size != old_size) |
| 4072 delegate_->UpdatePreferredSize(this, new_size); | 4070 delegate_->UpdatePreferredSize(this, new_size); |
| 4073 } | 4071 } |
| 4074 | 4072 |
| 4075 } // namespace content | 4073 } // namespace content |
| OLD | NEW |