| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, | 518 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, |
| 519 OnDidChangeLoadProgress) | 519 OnDidChangeLoadProgress) |
| 520 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) | 520 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) |
| 521 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) | 521 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) |
| 522 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, | 522 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, |
| 523 OnSetSelectedColorInColorChooser) | 523 OnSetSelectedColorInColorChooser) |
| 524 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, | 524 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, |
| 525 OnMediaPlayingNotification) | 525 OnMediaPlayingNotification) |
| 526 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, | 526 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, |
| 527 OnMediaPausedNotification) | 527 OnMediaPausedNotification) |
| 528 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFirstVisuallyNonEmptyPaint, |
| 529 OnFirstVisuallyNonEmptyPaint) |
| 528 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, | 530 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, |
| 529 OnDidLoadResourceFromMemoryCache) | 531 OnDidLoadResourceFromMemoryCache) |
| 530 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, | 532 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, |
| 531 OnDidDisplayInsecureContent) | 533 OnDidDisplayInsecureContent) |
| 532 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, | 534 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, |
| 533 OnDidRunInsecureContent) | 535 OnDidRunInsecureContent) |
| 534 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 536 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
| 535 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 537 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
| 536 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 538 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
| 537 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 539 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
| 538 OnRegisterProtocolHandler) | 540 OnRegisterProtocolHandler) |
| 539 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 541 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
| 540 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 542 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
| 541 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 543 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
| 542 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 544 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
| 543 OnRequestPpapiBrokerPermission) | 545 OnRequestPpapiBrokerPermission) |
| 544 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID, | 546 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID, |
| 545 OnBrowserPluginMessage(message)) | 547 OnBrowserPluginMessage(message)) |
| 546 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, | 548 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, |
| 547 OnBrowserPluginMessage(message)) | 549 OnBrowserPluginMessage(message)) |
| 548 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) | 550 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) |
| 549 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) | 551 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) |
| 550 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, | |
| 551 OnFirstVisuallyNonEmptyPaint) | |
| 552 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, | 552 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, |
| 553 OnShowValidationMessage) | 553 OnShowValidationMessage) |
| 554 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, | 554 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, |
| 555 OnHideValidationMessage) | 555 OnHideValidationMessage) |
| 556 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage, | 556 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage, |
| 557 OnMoveValidationMessage) | 557 OnMoveValidationMessage) |
| 558 #if defined(OS_ANDROID) | 558 #if defined(OS_ANDROID) |
| 559 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply, | 559 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply, |
| 560 OnFindMatchRectsReply) | 560 OnFindMatchRectsReply) |
| 561 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog, | 561 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog, |
| (...skipping 3513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4075 | 4075 |
| 4076 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4076 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
| 4077 if (!delegate_) | 4077 if (!delegate_) |
| 4078 return; | 4078 return; |
| 4079 const gfx::Size new_size = GetPreferredSize(); | 4079 const gfx::Size new_size = GetPreferredSize(); |
| 4080 if (new_size != old_size) | 4080 if (new_size != old_size) |
| 4081 delegate_->UpdatePreferredSize(this, new_size); | 4081 delegate_->UpdatePreferredSize(this, new_size); |
| 4082 } | 4082 } |
| 4083 | 4083 |
| 4084 } // namespace content | 4084 } // namespace content |
| OLD | NEW |