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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 527 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
528 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 528 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
529 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 529 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
530 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 530 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
531 OnRegisterProtocolHandler) | 531 OnRegisterProtocolHandler) |
532 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 532 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
533 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 533 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
534 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 534 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
535 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 535 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
536 OnRequestPpapiBrokerPermission) | 536 OnRequestPpapiBrokerPermission) |
537 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID, | |
538 OnBrowserPluginMessage(message)) | |
539 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, | 537 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, |
540 OnBrowserPluginMessage(message)) | 538 OnBrowserPluginMessage(message)) |
541 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) | 539 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) |
542 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) | 540 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) |
543 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | 541 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
544 OnFirstVisuallyNonEmptyPaint) | 542 OnFirstVisuallyNonEmptyPaint) |
545 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, | 543 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, |
546 OnShowValidationMessage) | 544 OnShowValidationMessage) |
547 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, | 545 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, |
548 OnHideValidationMessage) | 546 OnHideValidationMessage) |
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4047 | 4045 |
4048 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4046 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
4049 if (!delegate_) | 4047 if (!delegate_) |
4050 return; | 4048 return; |
4051 const gfx::Size new_size = GetPreferredSize(); | 4049 const gfx::Size new_size = GetPreferredSize(); |
4052 if (new_size != old_size) | 4050 if (new_size != old_size) |
4053 delegate_->UpdatePreferredSize(this, new_size); | 4051 delegate_->UpdatePreferredSize(this, new_size); |
4054 } | 4052 } |
4055 | 4053 |
4056 } // namespace content | 4054 } // namespace content |
OLD | NEW |