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 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 const base::string16& title, | 2660 const base::string16& title, |
2661 bool user_gesture) { | 2661 bool user_gesture) { |
2662 if (!delegate_) | 2662 if (!delegate_) |
2663 return; | 2663 return; |
2664 | 2664 |
2665 ChildProcessSecurityPolicyImpl* policy = | 2665 ChildProcessSecurityPolicyImpl* policy = |
2666 ChildProcessSecurityPolicyImpl::GetInstance(); | 2666 ChildProcessSecurityPolicyImpl::GetInstance(); |
2667 if (policy->IsPseudoScheme(protocol)) | 2667 if (policy->IsPseudoScheme(protocol)) |
2668 return; | 2668 return; |
2669 | 2669 |
2670 delegate_->RegisterProtocolHandler(this, protocol, url, title, user_gesture); | 2670 delegate_->RegisterProtocolHandler(this, protocol, url, user_gesture); |
2671 } | 2671 } |
2672 | 2672 |
2673 void WebContentsImpl::OnFindReply(int request_id, | 2673 void WebContentsImpl::OnFindReply(int request_id, |
2674 int number_of_matches, | 2674 int number_of_matches, |
2675 const gfx::Rect& selection_rect, | 2675 const gfx::Rect& selection_rect, |
2676 int active_match_ordinal, | 2676 int active_match_ordinal, |
2677 bool final_update) { | 2677 bool final_update) { |
2678 if (delegate_) { | 2678 if (delegate_) { |
2679 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, | 2679 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, |
2680 active_match_ordinal, final_update); | 2680 active_match_ordinal, final_update); |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3970 | 3970 |
3971 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 3971 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
3972 if (!delegate_) | 3972 if (!delegate_) |
3973 return; | 3973 return; |
3974 const gfx::Size new_size = GetPreferredSize(); | 3974 const gfx::Size new_size = GetPreferredSize(); |
3975 if (new_size != old_size) | 3975 if (new_size != old_size) |
3976 delegate_->UpdatePreferredSize(this, new_size); | 3976 delegate_->UpdatePreferredSize(this, new_size); |
3977 } | 3977 } |
3978 | 3978 |
3979 } // namespace content | 3979 } // namespace content |
OLD | NEW |