| 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #include "ui/base/touch/touch_enabled.h" | 84 #include "ui/base/touch/touch_enabled.h" |
| 85 #include "ui/base/ui_base_switches.h" | 85 #include "ui/base/ui_base_switches.h" |
| 86 #include "ui/gfx/animation/animation.h" | 86 #include "ui/gfx/animation/animation.h" |
| 87 #include "ui/gfx/image/image_skia.h" | 87 #include "ui/gfx/image/image_skia.h" |
| 88 #include "ui/gfx/native_widget_types.h" | 88 #include "ui/gfx/native_widget_types.h" |
| 89 #include "ui/native_theme/native_theme_switches.h" | 89 #include "ui/native_theme/native_theme_switches.h" |
| 90 #include "url/url_constants.h" | 90 #include "url/url_constants.h" |
| 91 | 91 |
| 92 #if defined(OS_WIN) | 92 #if defined(OS_WIN) |
| 93 #include "base/win/win_util.h" | 93 #include "base/win/win_util.h" |
| 94 #include "ui/display/win/dpi.h" |
| 94 #include "ui/gfx/platform_font_win.h" | 95 #include "ui/gfx/platform_font_win.h" |
| 95 #include "ui/gfx/win/dpi.h" | |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 using base::TimeDelta; | 98 using base::TimeDelta; |
| 99 using blink::WebConsoleMessage; | 99 using blink::WebConsoleMessage; |
| 100 using blink::WebDragOperation; | 100 using blink::WebDragOperation; |
| 101 using blink::WebDragOperationNone; | 101 using blink::WebDragOperationNone; |
| 102 using blink::WebDragOperationsMask; | 102 using blink::WebDragOperationsMask; |
| 103 using blink::WebInputEvent; | 103 using blink::WebInputEvent; |
| 104 using blink::WebMediaPlayerAction; | 104 using blink::WebMediaPlayerAction; |
| 105 using blink::WebPluginAction; | 105 using blink::WebPluginAction; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 prefs->status_font_family_name = metrics.lfStatusFont.lfFaceName; | 148 prefs->status_font_family_name = metrics.lfStatusFont.lfFaceName; |
| 149 prefs->status_font_height = gfx::PlatformFontWin::GetFontSize( | 149 prefs->status_font_height = gfx::PlatformFontWin::GetFontSize( |
| 150 metrics.lfStatusFont); | 150 metrics.lfStatusFont); |
| 151 | 151 |
| 152 prefs->message_font_family_name = metrics.lfMessageFont.lfFaceName; | 152 prefs->message_font_family_name = metrics.lfMessageFont.lfFaceName; |
| 153 prefs->message_font_height = gfx::PlatformFontWin::GetFontSize( | 153 prefs->message_font_height = gfx::PlatformFontWin::GetFontSize( |
| 154 metrics.lfMessageFont); | 154 metrics.lfMessageFont); |
| 155 | 155 |
| 156 prefs->vertical_scroll_bar_width_in_dips = | 156 prefs->vertical_scroll_bar_width_in_dips = |
| 157 gfx::win::GetSystemMetricsInDIP(SM_CXVSCROLL); | 157 display::win::GetSystemMetricsInDIP(SM_CXVSCROLL); |
| 158 prefs->horizontal_scroll_bar_height_in_dips = | 158 prefs->horizontal_scroll_bar_height_in_dips = |
| 159 gfx::win::GetSystemMetricsInDIP(SM_CYHSCROLL); | 159 display::win::GetSystemMetricsInDIP(SM_CYHSCROLL); |
| 160 prefs->arrow_bitmap_height_vertical_scroll_bar_in_dips = | 160 prefs->arrow_bitmap_height_vertical_scroll_bar_in_dips = |
| 161 gfx::win::GetSystemMetricsInDIP(SM_CYVSCROLL); | 161 display::win::GetSystemMetricsInDIP(SM_CYVSCROLL); |
| 162 prefs->arrow_bitmap_width_horizontal_scroll_bar_in_dips = | 162 prefs->arrow_bitmap_width_horizontal_scroll_bar_in_dips = |
| 163 gfx::win::GetSystemMetricsInDIP(SM_CXHSCROLL); | 163 display::win::GetSystemMetricsInDIP(SM_CXHSCROLL); |
| 164 } | 164 } |
| 165 #endif | 165 #endif |
| 166 | 166 |
| 167 } // namespace | 167 } // namespace |
| 168 | 168 |
| 169 // static | 169 // static |
| 170 const int64_t RenderViewHostImpl::kUnloadTimeoutMS = 1000; | 170 const int64_t RenderViewHostImpl::kUnloadTimeoutMS = 1000; |
| 171 | 171 |
| 172 /////////////////////////////////////////////////////////////////////////////// | 172 /////////////////////////////////////////////////////////////////////////////// |
| 173 // RenderViewHost, public: | 173 // RenderViewHost, public: |
| (...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 } else { | 1349 } else { |
| 1350 render_view_ready_on_process_launch_ = true; | 1350 render_view_ready_on_process_launch_ = true; |
| 1351 } | 1351 } |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 void RenderViewHostImpl::RenderViewReady() { | 1354 void RenderViewHostImpl::RenderViewReady() { |
| 1355 delegate_->RenderViewReady(this); | 1355 delegate_->RenderViewReady(this); |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 } // namespace content | 1358 } // namespace content |
| OLD | NEW |