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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 534 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
535 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 535 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
536 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 536 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
537 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 537 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
538 OnRegisterProtocolHandler) | 538 OnRegisterProtocolHandler) |
539 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 539 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
540 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 540 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
541 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 541 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
542 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 542 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
543 OnRequestPpapiBrokerPermission) | 543 OnRequestPpapiBrokerPermission) |
544 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID, | |
545 OnBrowserPluginMessage(message)) | |
546 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, | 544 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, |
547 OnBrowserPluginMessage(message)) | 545 OnBrowserPluginMessage(message)) |
548 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) | 546 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) |
549 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) | 547 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) |
550 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | 548 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
551 OnFirstVisuallyNonEmptyPaint) | 549 OnFirstVisuallyNonEmptyPaint) |
552 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, | 550 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, |
553 OnShowValidationMessage) | 551 OnShowValidationMessage) |
554 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, | 552 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, |
555 OnHideValidationMessage) | 553 OnHideValidationMessage) |
(...skipping 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4075 | 4073 |
4076 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4074 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
4077 if (!delegate_) | 4075 if (!delegate_) |
4078 return; | 4076 return; |
4079 const gfx::Size new_size = GetPreferredSize(); | 4077 const gfx::Size new_size = GetPreferredSize(); |
4080 if (new_size != old_size) | 4078 if (new_size != old_size) |
4081 delegate_->UpdatePreferredSize(this, new_size); | 4079 delegate_->UpdatePreferredSize(this, new_size); |
4082 } | 4080 } |
4083 | 4081 |
4084 } // namespace content | 4082 } // namespace content |
OLD | NEW |