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 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4071 | 4069 |
4072 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4070 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
4073 if (!delegate_) | 4071 if (!delegate_) |
4074 return; | 4072 return; |
4075 const gfx::Size new_size = GetPreferredSize(); | 4073 const gfx::Size new_size = GetPreferredSize(); |
4076 if (new_size != old_size) | 4074 if (new_size != old_size) |
4077 delegate_->UpdatePreferredSize(this, new_size); | 4075 delegate_->UpdatePreferredSize(this, new_size); |
4078 } | 4076 } |
4079 | 4077 |
4080 } // namespace content | 4078 } // namespace content |
OLD | NEW |