| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 didCommitProvisionalLoad(frame, item, commit_type); | 2200 didCommitProvisionalLoad(frame, item, commit_type); |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 void RenderFrameImpl::didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame) { | 2203 void RenderFrameImpl::didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame) { |
| 2204 DCHECK(!frame_ || frame_ == frame); | 2204 DCHECK(!frame_ || frame_ == frame); |
| 2205 // TODO(nasko): Move implementation here. Needed methods: | 2205 // TODO(nasko): Move implementation here. Needed methods: |
| 2206 // * StartNavStateSyncTimerIfNecessary | 2206 // * StartNavStateSyncTimerIfNecessary |
| 2207 render_view_->didUpdateCurrentHistoryItem(frame); | 2207 render_view_->didUpdateCurrentHistoryItem(frame); |
| 2208 } | 2208 } |
| 2209 | 2209 |
| 2210 void RenderFrameImpl::didChangeBrandColor() { |
| 2211 if (frame_->parent()) |
| 2212 return; |
| 2213 |
| 2214 Send(new FrameHostMsg_DidChangeBrandColor( |
| 2215 routing_id_, frame_->document().brandColor())); |
| 2216 } |
| 2217 |
| 2210 blink::WebNotificationPresenter* RenderFrameImpl::notificationPresenter() { | 2218 blink::WebNotificationPresenter* RenderFrameImpl::notificationPresenter() { |
| 2211 return notification_provider_; | 2219 return notification_provider_; |
| 2212 } | 2220 } |
| 2213 | 2221 |
| 2214 void RenderFrameImpl::didChangeSelection(bool is_empty_selection) { | 2222 void RenderFrameImpl::didChangeSelection(bool is_empty_selection) { |
| 2215 if (!GetRenderWidget()->handling_input_event() && !handling_select_range_) | 2223 if (!GetRenderWidget()->handling_input_event() && !handling_select_range_) |
| 2216 return; | 2224 return; |
| 2217 | 2225 |
| 2218 if (is_empty_selection) | 2226 if (is_empty_selection) |
| 2219 selection_text_.clear(); | 2227 selection_text_.clear(); |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3593 | 3601 |
| 3594 #if defined(ENABLE_BROWSER_CDMS) | 3602 #if defined(ENABLE_BROWSER_CDMS) |
| 3595 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 3603 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
| 3596 if (!cdm_manager_) | 3604 if (!cdm_manager_) |
| 3597 cdm_manager_ = new RendererCdmManager(this); | 3605 cdm_manager_ = new RendererCdmManager(this); |
| 3598 return cdm_manager_; | 3606 return cdm_manager_; |
| 3599 } | 3607 } |
| 3600 #endif // defined(ENABLE_BROWSER_CDMS) | 3608 #endif // defined(ENABLE_BROWSER_CDMS) |
| 3601 | 3609 |
| 3602 } // namespace content | 3610 } // namespace content |
| OLD | NEW |