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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 331793005: Notify the change of brand color from renderer to Brower (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 6 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698