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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 SiteInstance* instance) { | 1633 SiteInstance* instance) { |
1634 return controller_.GetSessionStorageNamespace(instance); | 1634 return controller_.GetSessionStorageNamespace(instance); |
1635 } | 1635 } |
1636 | 1636 |
1637 FrameTree* WebContentsImpl::GetFrameTree() { | 1637 FrameTree* WebContentsImpl::GetFrameTree() { |
1638 return &frame_tree_; | 1638 return &frame_tree_; |
1639 } | 1639 } |
1640 | 1640 |
1641 void WebContentsImpl::OnShowValidationMessage( | 1641 void WebContentsImpl::OnShowValidationMessage( |
1642 const gfx::Rect& anchor_in_root_view, | 1642 const gfx::Rect& anchor_in_root_view, |
1643 const string16& main_text, | 1643 const base::string16& main_text, |
1644 const string16& sub_text) { | 1644 const base::string16& sub_text) { |
1645 if (delegate_) | 1645 if (delegate_) |
1646 delegate_->ShowValidationMessage( | 1646 delegate_->ShowValidationMessage( |
1647 this, anchor_in_root_view, main_text, sub_text); | 1647 this, anchor_in_root_view, main_text, sub_text); |
1648 } | 1648 } |
1649 | 1649 |
1650 void WebContentsImpl::OnHideValidationMessage() { | 1650 void WebContentsImpl::OnHideValidationMessage() { |
1651 if (delegate_) | 1651 if (delegate_) |
1652 delegate_->HideValidationMessage(this); | 1652 delegate_->HideValidationMessage(this); |
1653 } | 1653 } |
1654 | 1654 |
(...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3824 } | 3824 } |
3825 | 3825 |
3826 void WebContentsImpl::OnFrameRemoved( | 3826 void WebContentsImpl::OnFrameRemoved( |
3827 RenderViewHostImpl* render_view_host, | 3827 RenderViewHostImpl* render_view_host, |
3828 int64 frame_id) { | 3828 int64 frame_id) { |
3829 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3829 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
3830 FrameDetached(render_view_host, frame_id)); | 3830 FrameDetached(render_view_host, frame_id)); |
3831 } | 3831 } |
3832 | 3832 |
3833 } // namespace content | 3833 } // namespace content |
OLD | NEW |