| OLD | NEW |
| 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 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2944 void RenderView::OnEnableIntrinsicWidthChangedMode() { | 2944 void RenderView::OnEnableIntrinsicWidthChangedMode() { |
| 2945 send_preferred_width_changes_ = true; | 2945 send_preferred_width_changes_ = true; |
| 2946 } | 2946 } |
| 2947 | 2947 |
| 2948 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { | 2948 void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) { |
| 2949 renderer_preferences_ = renderer_prefs; | 2949 renderer_preferences_ = renderer_prefs; |
| 2950 UpdateFontRenderingFromRendererPrefs(); | 2950 UpdateFontRenderingFromRendererPrefs(); |
| 2951 #if defined(OS_LINUX) | 2951 #if defined(OS_LINUX) |
| 2952 WebColorName name = WebKit::WebColorWebkitFocusRingColor; | 2952 WebColorName name = WebKit::WebColorWebkitFocusRingColor; |
| 2953 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); | 2953 WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1); |
| 2954 if (webview()) |
| 2955 webview()->SetCaretBlinkInterval(renderer_prefs.caret_blink_interval); |
| 2954 #endif | 2956 #endif |
| 2955 } | 2957 } |
| 2956 | 2958 |
| 2957 void RenderView::OnMediaPlayerActionAt(int x, | 2959 void RenderView::OnMediaPlayerActionAt(int x, |
| 2958 int y, | 2960 int y, |
| 2959 const MediaPlayerAction& action) { | 2961 const MediaPlayerAction& action) { |
| 2960 if (!webview()) | 2962 if (!webview()) |
| 2961 return; | 2963 return; |
| 2962 | 2964 |
| 2963 webview()->MediaPlayerActionAt(x, y, action); | 2965 webview()->MediaPlayerActionAt(x, y, action); |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3508 // TODO(darin): There's actually no reason for this to be here. We should | 3510 // TODO(darin): There's actually no reason for this to be here. We should |
| 3509 // have the browser side manage the document tag. | 3511 // have the browser side manage the document tag. |
| 3510 #if defined(OS_MACOSX) | 3512 #if defined(OS_MACOSX) |
| 3511 if (!has_document_tag_) { | 3513 if (!has_document_tag_) { |
| 3512 // Make the call to get the tag. | 3514 // Make the call to get the tag. |
| 3513 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); | 3515 Send(new ViewHostMsg_GetDocumentTag(routing_id_, &document_tag_)); |
| 3514 has_document_tag_ = true; | 3516 has_document_tag_ = true; |
| 3515 } | 3517 } |
| 3516 #endif | 3518 #endif |
| 3517 } | 3519 } |
| OLD | NEW |