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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 159152: Linux: splice together RendererPreferences and SkFontHost (Closed)
Patch Set: ... Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 2622
2623 main_frame->SetInViewSourceMode(true); 2623 main_frame->SetInViewSourceMode(true);
2624 } 2624 }
2625 2625
2626 void RenderView::OnEnableIntrinsicWidthChangedMode() { 2626 void RenderView::OnEnableIntrinsicWidthChangedMode() {
2627 send_preferred_width_changes_ = true; 2627 send_preferred_width_changes_ = true;
2628 } 2628 }
2629 2629
2630 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { 2630 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) {
2631 renderer_preferences_ = renderer_prefs; 2631 renderer_preferences_ = renderer_prefs;
2632 2632 UpdateFontRenderingFromRendererPrefs();
2633 // TODO(derat): Pass |renderer_preferences_.should_antialias_text|, |hinting|,
2634 // and |subpixel_rendering| through to Skia.
2635 } 2633 }
2636 2634
2637 void RenderView::OnUpdateBackForwardListCount(int back_list_count, 2635 void RenderView::OnUpdateBackForwardListCount(int back_list_count,
2638 int forward_list_count) { 2636 int forward_list_count) {
2639 history_back_list_count_ = back_list_count; 2637 history_back_list_count_ = back_list_count;
2640 history_forward_list_count_ = forward_list_count; 2638 history_forward_list_count_ = forward_list_count;
2641 } 2639 }
2642 2640
2643 void RenderView::OnGetAccessibilityInfo( 2641 void RenderView::OnGetAccessibilityInfo(
2644 const webkit_glue::WebAccessibility::InParams& in_params, 2642 const webkit_glue::WebAccessibility::InParams& in_params,
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3061 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3064 } 3062 }
3065 3063
3066 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3064 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3067 DCHECK(frame); 3065 DCHECK(frame);
3068 if (print_helper_.get() == NULL) { 3066 if (print_helper_.get() == NULL) {
3069 print_helper_.reset(new PrintWebViewHelper(this)); 3067 print_helper_.reset(new PrintWebViewHelper(this));
3070 } 3068 }
3071 print_helper_->Print(frame, script_initiated); 3069 print_helper_->Print(frame, script_initiated);
3072 } 3070 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698