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