Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 365513002: Port identity_internals to mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky fixes Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, 547 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach,
548 OnBrowserPluginMessage(message)) 548 OnBrowserPluginMessage(message))
549 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) 549 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage)
550 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) 550 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
551 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, 551 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage,
552 OnShowValidationMessage) 552 OnShowValidationMessage)
553 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, 553 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage,
554 OnHideValidationMessage) 554 OnHideValidationMessage)
555 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage, 555 IPC_MESSAGE_HANDLER(ViewHostMsg_MoveValidationMessage,
556 OnMoveValidationMessage) 556 OnMoveValidationMessage)
557 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUIMojoMainRan, OnWebUIMojoMainRan)
557 #if defined(OS_ANDROID) 558 #if defined(OS_ANDROID)
558 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply, 559 IPC_MESSAGE_HANDLER(ViewHostMsg_FindMatchRects_Reply,
559 OnFindMatchRectsReply) 560 OnFindMatchRectsReply)
560 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog, 561 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenDateTimeDialog,
561 OnOpenDateTimeDialog) 562 OnOpenDateTimeDialog)
562 #endif 563 #endif
563 IPC_MESSAGE_UNHANDLED(handled = false) 564 IPC_MESSAGE_UNHANDLED(handled = false)
564 IPC_END_MESSAGE_MAP() 565 IPC_END_MESSAGE_MAP()
565 render_view_message_source_ = NULL; 566 render_view_message_source_ = NULL;
566 render_frame_message_source_ = NULL; 567 render_frame_message_source_ = NULL;
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 if (delegate_) 1715 if (delegate_)
1715 delegate_->HideValidationMessage(this); 1716 delegate_->HideValidationMessage(this);
1716 } 1717 }
1717 1718
1718 void WebContentsImpl::OnMoveValidationMessage( 1719 void WebContentsImpl::OnMoveValidationMessage(
1719 const gfx::Rect& anchor_in_root_view) { 1720 const gfx::Rect& anchor_in_root_view) {
1720 if (delegate_) 1721 if (delegate_)
1721 delegate_->MoveValidationMessage(this, anchor_in_root_view); 1722 delegate_->MoveValidationMessage(this, anchor_in_root_view);
1722 } 1723 }
1723 1724
1725 void WebContentsImpl::OnWebUIMojoMainRan() {
1726 FOR_EACH_OBSERVER(WebContentsObserver,
1727 observers_,
1728 DidRunWebUIMojoMain());
1729 }
1730
1724 void WebContentsImpl::DidSendScreenRects(RenderWidgetHostImpl* rwh) { 1731 void WebContentsImpl::DidSendScreenRects(RenderWidgetHostImpl* rwh) {
1725 if (browser_plugin_embedder_) 1732 if (browser_plugin_embedder_)
1726 browser_plugin_embedder_->DidSendScreenRects(); 1733 browser_plugin_embedder_->DidSendScreenRects();
1727 } 1734 }
1728 1735
1729 void WebContentsImpl::OnTouchEmulationEnabled(bool enabled) { 1736 void WebContentsImpl::OnTouchEmulationEnabled(bool enabled) {
1730 touch_emulation_enabled_ = enabled; 1737 touch_emulation_enabled_ = enabled;
1731 if (view_) 1738 if (view_)
1732 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 1739 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
1733 } 1740 }
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
4135 if (new_size != old_size) 4142 if (new_size != old_size)
4136 delegate_->UpdatePreferredSize(this, new_size); 4143 delegate_->UpdatePreferredSize(this, new_size);
4137 } 4144 }
4138 4145
4139 void WebContentsImpl::ResumeResponseDeferredAtStart() { 4146 void WebContentsImpl::ResumeResponseDeferredAtStart() {
4140 FrameTreeNode* node = frame_tree_.root(); 4147 FrameTreeNode* node = frame_tree_.root();
4141 node->render_manager()->ResumeResponseDeferredAtStart(); 4148 node->render_manager()->ResumeResponseDeferredAtStart();
4142 } 4149 }
4143 4150
4144 } // namespace content 4151 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698